@Override
    public ConnectionConfiguration getConfiguration() {
        if (configuration == null) {
            final ConnectionManager connectionManager = XMPPServer.getInstance().getConnectionManager();
            configuration = connectionManager.getListener( connectionType, true ).generateConnectionConfiguration();
        }
        return configuration;
    }
Following the conventions of the BOSH implementation, this class extends {@link VirtualConnection}
and delegates the expected XMPP connection behaviors to the corresponding {@link WebSocketClientConnectionHandler}.
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketConnection.java