public int getInteger(String name, int defaultValue) {
        try {
            String value = getString(name, null);
            if (!StringUtils.isNullOrEmpty(value)) {
                return Integer.parseInt(value.trim());
            }
        } catch (NumberFormatException e) {
            log.warn("Failed to parse integer for " + name + USING_DEFAULT_OF
                + defaultValue);
        }

        return defaultValue;
    }
public int getInteger ( String name , int defaultValue ) { try { String value = getString ( name , null ) ; if ( ! StringUtils . isNullOrEmpty ( value ) ) { return Integer . parseInt ( value . trim ( ) ) ; } } catch ( NumberFormatException e ) { log . warn ( "Failed to parse integer for " + name + USING_DEFAULT_OF + defaultValue ) ; } return defaultValue ; }
Returns the integer value for the specified name. If the name does not
exist or the value for the name can not be interpreted as an integer, the
defaultValue is returned.

@param name
@param defaultValue
@return name value or defaultValue