protected static int getIntAttribute(String value, int defaultValue) {
        if (value == null || value.isEmpty()) {
            return defaultValue;
        }
        try {
            return Integer.parseInt(value);
        }
        catch (Exception ex) {
            return defaultValue;
        }
    }
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