public String getLanguage()
    {
        // Default language is English ("en").
        final String language = document.getRootElement().attributeValue( QName.get( "lang", XMLConstants.XML_NS_URI ) );
        if ( language == null || language.isEmpty())
        {
            return "en";
        }

        return language;
    }
Representation of the 'body' element of an HTTP-Bind defined request.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpBindBody.java