code: public int getInt(@NotNull final String key, int defaultValue) {
          int value;
          try {
              value = Integer.parseInt(getString(key));
          } catch (NumberFormatException ex) {
              if (!getString(key, "").isEmpty()) {
                  LOGGER.debug("Could not convert property '{}={}' to an int; using {} instead.", key, getString(key), defaultValue);
              }
              value = defaultValue;
          }
          return value;
      }
docs: Returns an int value from the properties file. If the value was specified
  as a system property or passed in via the -Dprop=value argument - this
  method will return the value from the system properties before the values
  in the contained configuration file.
  
  @param key the key to lookup within the properties file
  @param defaultValue the default value to return
  @return the property from the properties file or the defaultValue if the
  property does not exist or cannot be converted to an integer