public static int createIntegerSetting(final Map<String,String> rawSettings,final String settingName,final int defaultValue){
  final String settingString=rawSettings.get(settingName);
  if ((settingString != null) && Convert.isDecString(settingString)) {
    try {
      return Integer.parseInt(settingString);
    }
 catch (    final NumberFormatException exception) {
      CUtilityFunctions.logException(exception);
      return defaultValue;
    }
  }
 else {
    return defaultValue;
  }
}

public static int createIntegerSetting ( final Map < String , String > rawSettings , final String settingName , final int defaultValue ) { final String settingString = rawSettings . get ( settingName ) ; if ( ( settingString != null ) && Convert . isDecString ( settingString ) ) { try { return Integer . parseInt ( settingString ) ; } catch ( final NumberFormatException exception ) { CUtilityFunctions . logException ( exception ) ; return defaultValue ; } } else { return defaultValue ; } }
turns a settings string value into an integer value .
