code: public int getInt(String key, int defaultValue) {
      	String value = get(key);
      	if(value == null) return defaultValue;
      	try {
      		return Integer.parseInt(value);
          } catch (NumberFormatException e) {
              throw new IllegalArgumentException(key + " parameter should be a number");
          }
      }
docs: Returns an integer value by the key specified or defaultValue if the key was not provided