code: public Boolean getBooleanReqPar(final String name) throws Throwable {
      String reqpar = getReqPar(name);
  
      if (reqpar == null) {
        return null;
      }
  
      try {
        if (reqpar.equalsIgnoreCase("yes")) {
          reqpar = "true";
        }
  
        return Boolean.valueOf(reqpar);
      } catch (Throwable t) {
        return null; // XXX exception?
      }
    }
docs: Get a boolean valued request parameter.
  
  @param name    name of parameter
  @return  Boolean   value or null for absent parameter
  @throws Throwable