public static final String getLocalizedMessageForWeb(String key, String language, String defaultValue) {
try{
if(!webMessageBundles.containsKey(language)){
Locale locale = new Locale(language);
PropertyResourceBundle propertyResourceBundle = (PropertyResourceBundle) PropertyResourceBundle.getBundle("org.uengine.messages", locale, GlobalContext.getClassLoader());
if(!propertyResourceBundle.getLocale().getLanguage().equals(language)) return defaultValue;
webMessageBundles.put(language, propertyResourceBundle);
}
ResourceBundle webMessageBundle = (ResourceBundle) webMessageBundles.get(language);