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 ; }
Utility method to get an int from the properties file .