private boolean isHttpCompressionEnabled() {
        final ConnectionManager connectionManager = XMPPServer.getInstance().getConnectionManager();
        final ConnectionConfiguration configuration = connectionManager.getListener( ConnectionType.BOSH_C2S, true ).generateConnectionConfiguration();
        return configuration.getCompressionPolicy() == null || configuration.getCompressionPolicy().equals( Connection.CompressionPolicy.optional );
    }
Creates a Jetty context handler that can be used to expose Websocket functionality.

Note that an invocation of this method will not register the handler (and thus make the related functionality
available to the end user). Instead, the created handler is returned by this method, and will need to be
registered with the embedded Jetty webserver by the caller.

@return A Jetty context handler (never null).
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpBindManager.java