private static <T>T createEnumerationSetting(final Map<String,String> rawSettings,final String settingName,final T defaultValue,final IParser<T> parser){
  final String settingString=rawSettings.get(settingName);
  if ((settingString != null) && Convert.isDecString(settingString)) {
    try {
      return parser.parse(Integer.parseInt(settingString));
    }
 catch (    final Exception exception) {
      CUtilityFunctions.logException(exception);
      return defaultValue;
    }
  }
 else {
    return defaultValue;
  }
}

private static < T > T createEnumerationSetting ( final Map < String , String > rawSettings , final String settingName , final T defaultValue , final IParser < T > parser ) { final String settingString = rawSettings . get ( settingName ) ; if ( ( settingString != null ) && Convert . isDecString ( settingString ) ) { try { return parser . parse ( Integer . parseInt ( settingString ) ) ; } catch ( final Exception exception ) { CUtilityFunctions . logException ( exception ) ; return defaultValue ; } } else { return defaultValue ; } }
turns a settings string value into an enumeration value .
