public synchronized void restart()
    {
        Log.debug( "Restarting..." );
        try
        {
            if ( connectionAcceptor != null )
            {
                stop();
            }
        }
        finally
        {
            start(); // won't actually start anything if not enabled.
        }
        Log.info( "Done restarting..." );
    }
Starts or restarts this instance (typically used to put into effect a configuration change).

A connection that was started, but is disabled by configuration will be stopped but not restarted by an
invocation of this method.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java