String country = locale.getCountry();
String content = getResourceBundleContent(name, locale, defaultLocale, cl);
if (content != null) {
// save the content
ResourceBundleData data = new ResourceBundleData();
if (country != null && country.length() > 0) {
data.setId(baseName + "_" + language + "_" + country);
} else {
data.setId(baseName + "_" + language);
}
data.setName(baseName);
data.setLanguage(language);
data.setData(content);
saveResourceBundle(data);
}
}
} catch (Exception ex) {
log_.error("Error while reading the resource bundle : " + baseName, ex);