public void restart() {
        if (isStandAlone() && isRestartable()) {
            try {
                Class<?> wrapperClass = Class.forName(WRAPPER_CLASSNAME);
                Method restartMethod = wrapperClass.getMethod("restart", (Class []) null);
                restartMethod.invoke(null, (Object []) null);
            }
            catch (Exception e) {
                logger.error("Could not restart container", e);
            }
        }
    }
Restarts the server and all it's modules only if the server is restartable. Otherwise do
nothing.
xmppserver/src/main/java/org/jivesoftware/openfire/XMPPServer.java