@Nonnull
    private String createSessionRestartResponse()
    {
        final Element response = DocumentHelper.createElement( QName.get( "body", "http://jabber.org/protocol/httpbind" ) );
        response.addNamespace("stream", "http://etherx.jabber.org/streams");

        final Element features = response.addElement("stream:features");
        for (Element feature : getAvailableStreamFeatures()) {
            features.add(feature);
        }

        return response.asXML();
    }
Creates a BOSH 'body' element that represents a 'session restart' event, including the stream features that are
available to this session.

@return The string representation of a BOSH 'body' element for a 'session restart'.
@see <a href="https://xmpp.org/extensions/xep-0206.html#preconditions-sasl">XEP-0206, section 5</a>
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java