{
user.setPerm("language", language);
}
// Get the locale store it in the user object
CustomLocalizationService locService =
(CustomLocalizationService) ServiceUtil.getServiceByName(LocalizationService.SERVICE_NAME);
Locale locale = locService.getLocale(data);
if (locale == null)
{
locale = new Locale(TurbineResources.getString("locale.default.language", "en"),
TurbineResources.getString("locale.default.country", "US"));
}