code: public long getLongReqPar(final String name,
                              final long defaultVal) throws Throwable {
      String reqpar = getReqPar(name);
  
      if (reqpar == null) {
        return defaultVal;
      }
  
      try {
        return Long.parseLong(reqpar);
      } catch (Throwable t) {
        return defaultVal; // XXX exception?
      }
    }
docs: Get an long valued request parameter.
  
  @param name    name of parameter
  @param defaultVal
  @return  long  value
  @throws Throwable