protected boolean isEndOfStream(final String xml) {
        return xml.equals("</stream:stream>");
    }
Checks if the provided XML data represents the end / closing of an XMPP stream.

@param xml The XML to verify
@return 'true' if the provided data represents the end of an XMPP stream.
xmppserver/src/main/java/org/jivesoftware/openfire/net/StanzaHandler.java