public void addJettyHandler(@Nonnull final Handler handler )
    {
        if ( handler == null )
        {
            throw new IllegalArgumentException( "Argument 'handler' cannot be null." );
        }

        extensionHandlers.addHandler( handler );

        if ( !handler.isStarted() && extensionHandlers.isStarted() )
        {
            try
            {
                handler.start();
            }
            catch ( Exception e )
            {
                Log.warn( "Unable to start handler {}", handler, e );
            }
        }
    }
Adds a Jetty handler to be added to the embedded web server that is used to expose BOSH (HTTP-bind)
functionality.

@param handler The handler (cannot be null).
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpBindManager.java