try
{
Collection<LocaleConfig> localeConfigs = localeService_.getLocalConfigs();
// String defaultLang =
// localeService_.getDefaultLocaleConfig().getLanguage();
Locale defaultLocale = localeService_.getDefaultLocaleConfig().getLocale();
for (Iterator<LocaleConfig> iter = localeConfigs.iterator(); iter.hasNext();)
{
LocaleConfig localeConfig = iter.next();
// String language = localeConfig.getLanguage();
// String content = getResourceBundleContent(name, language,
// defaultLang, cl);
Locale locale = localeConfig.getLocale();
String language = locale.getLanguage();
String country = locale.getCountry();
String content = getResourceBundleContent(name, locale, defaultLocale, cl);
if (content != null)
{
// save the content