@Nonnull
    private String asBodyText(@Nonnull final List<Deliverable> elements) {
        StringBuilder builder = new StringBuilder();
        builder.append("<body xmlns='http://jabber.org/protocol/httpbind' ack='")
            .append(getLastAcknowledged()).append("'>");

        setLastResponseEmpty(elements.isEmpty());
        for (Deliverable child : elements) {
            builder.append(child.getDeliverable());
        }
        builder.append("</body>");
        return builder.toString();
    }
Returns the textual representation of the provided element, wrapped in a httpbind 'body' element. The intended
usage of this method is to generate data that can be included in HTTP responses returned to the client.

@param elements The data to be transformed (can be empty).
@return The text representation (wrapped in a body element) of the provided elements.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java