code: public int getParameterAsInt(String name, int defaultValue){
  		String value = parameters.get(name);
  		if (value == null || value.isEmpty()){
  			return defaultValue;
  		}
  		try {
  			return Integer.parseInt(value);
  		} catch (Exception e) {
  			return defaultValue;
  		}
  	}
docs: Gets an integer parameter extracted from the History token.
  For example, if the token is: <pre>{@code tokenId&param1=1 }</pre>the call to <code>getParameterAsInt("param1", 0)</code> will return <code>1</code>.
  
  @param name The name of the parameter
  @param defaultValue The value to be returned when the parameter is <code>null</code> or not parseable to int
  @return The integer value of the parameter, or <code>defaultValue</code> if not parseable.
  When the token is something like <pre>{@code tokenId&param1&param2 }</pre> with a name without a explicit value, the default value is returned.