protected boolean isEndOfStream(final String xml) {
        return xml.startsWith("<" + STREAM_FOOTER);
    }
After SASL authentication was successful we should open a new stream and offer
new stream features such as resource binding and session establishment. Notice that
resource binding and session establishment should only be offered to clients (i.e. not
to servers or external components)
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketClientStanzaHandler.java