code: public static int getInt(Map<String, String> settings, String name) throws IllegalArgumentException {
          String value = getString(settings, name);
          try {
              return Integer.parseInt(value);
          } catch (Exception e) {
              throw new IllegalArgumentException("Setting '" + name + "=" + value + "' is not an integer on " + settings);
          }
      }
docs: Convert value of this setting to a Java <b>int</b>.
  
  If the setting is not found or is not an int, an exception is thrown.
  
  @param name name of the setting / property
  @return int value of the setting / property
  @throws IllegalArgumentException if setting is not found or is not an integer.