@Nonnull
    protected String createTerminalBindingBody(@Nonnull final String condition)
    {
        final Element body = DocumentHelper.createElement( QName.get( "body", "http://jabber.org/protocol/httpbind" ) );
        body.addAttribute("type", "terminate");
        body.addAttribute("condition", condition);
        return body.asXML();
    }
Creates an empty BOSH 'body' element that including a 'terminate' type attribute (that, in BOSH, signifies the
end of a session), and sets the 'condition' attribute to a specified value.

@param condition The terminate condition to set.
@return The string representation of a BOSH 'body' element.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java