code: public Object convertParameterValue(String parameterName, String type)
              throws NumberFormatException, UnhandledParameterTypeException {
          String[] valueList = parameterMap.get(parameterName);
          if (valueList == null || valueList.length == 0) return null;
          String value = valueList[0];
          if (value.equals("<null>")) return null;
          if (type.equals("java.lang.String")) return value;
          if (type.equals("boolean")) return Boolean.parseBoolean(value);
          if (type.equals("int")) return Integer.parseInt(value);
          if (type.equals("long")) return Long.parseLong(value);
          if (type.equals("float")) return Float.parseFloat(value);
          if (type.equals("double")) return Double.parseDouble(value);
  
          throw new UnhandledParameterTypeException("Cannot convert " + value + " into type " + type +
                  " for parameter " + parameterName);
      }
docs: Convert the {@link String} parameter value into its native type.
  The {@link String} '&lt;null&gt;' is converted into a null value.
  Only types String, Boolean, Int, Long, Float, and Double are supported.
  @param parameterName the parameter name to convert.
  @param type the native type for the parameter.
  @return the converted value.
  @throws NumberFormatException the parameter is not a number
  @throws UnhandledParameterTypeException unable to recognize the parameter type