code: public Integer getParameterInteger(String name, Integer defaultValue)
     {
        String value = getParameterValue(name, null);
  
        if (value != null)
        {
           try
           {
              return StringNumberParser.parseInt(value);
           }
           catch (NumberFormatException e)
           {
              if (LOG.isTraceEnabled())
              {
                 LOG.trace("An exception occurred: " + e.getMessage());
              }
           }
        }
  
        return defaultValue;
     }
docs: Parse named parameter as Integer.
  
  @param name
  parameter name
  @param defaultValue
  default Integer value
  @return Integer value