if(!propertyResourceBundle.getLocale().getLanguage().equals(language)) return defaultValue;
webMessageBundles.put(language, propertyResourceBundle);
}
ResourceBundle webMessageBundle = (ResourceBundle) webMessageBundles.get(language);
return webMessageBundle.getString(key);
}catch(Exception e){
return defaultValue;
}
}