code: protected final int getIntValue(final String propertyName, int defaultValue) {
          int result;
          String property = this.properties.getProperty(propertyName);
          try {
              result = Integer.parseInt(property);
          } catch (NumberFormatException e) {
              LOGGER.warn("Invalid integer property in configuration: {}",
                      propertyName);
              result = defaultValue;
          }
          return result;
      }
docs: Utility method to get an int from the properties file.
  
  @param propertyName The name of the property.
  @param defaultValue The default value to return, if the property is not
  found, or is malformed.
  @return The property value, as an int.