public static boolean getBooleanParameter(HttpServletRequest request, String name) {
        return getBooleanParameter(request, name, false);
    }
Returns a parameter as a boolean.

@param request the HttpServletRequest object, known as "request" in a
     JSP page.
@param name the name of the parameter you want to get
@return true if the value of the parameter was "true", false otherwise.
xmppserver/src/main/java/org/jivesoftware/util/ParamUtils.java