chain.doFilter(request, response);
return;
}
// Initialize currentLocale
ExoContainer container = getContainer();
if (container == null) {
// Nothing we can do, move on
chain.doFilter(req, res);
return;
}
LocaleConfigService localeConfigService = (LocaleConfigService) container
.getComponentInstanceOfType(LocaleConfigService.class);
LocalePolicy localePolicy = (LocalePolicy) container.getComponentInstanceOfType(LocalePolicy.class);
LocaleContextInfo localeCtx = new LocaleContextInfo();
Set<Locale> supportedLocales = new HashSet();
for (LocaleConfig lc : localeConfigService.getLocalConfigs()) {