}
private void createDefaultItem() throws Exception {
LocaleConfigService localeConfigService = getApplicationComponent(LocaleConfigService.class);
Collection<?> listLocaleConfig = localeConfigService.getLocalConfigs();
LocaleConfig defaultLocale = localeConfigService.getDefaultLocaleConfig();
String defaultLanguage = defaultLocale.getLanguage();
Locale currentLocale = Util.getPortalRequestContext().getLocale();
Iterator<?> iterator = listLocaleConfig.iterator();
while (iterator.hasNext()) {
LocaleConfig localeConfig = (LocaleConfig) iterator.next();
ResourceBundle localeResourceBundle = getResourceBundle(currentLocale);
Locale local = localeConfig.getLocale();
String lang = local.getLanguage();
if (local.getCountry() != null && local.getCountry().length() > 0) {
lang += "_" + local.getCountry();
}