/**
   * Context initialized.
   *
   * @param sce the sce
   */
  @Override
  public void contextInitialized(ServletContextEvent sce) {

    ServletContext context = sce.getServletContext();
    context.setAttribute("locales", LocaleManager.INSTANCE.getLocales());

    Locale.setDefault(Locale.ENGLISH);
  }
 /**
  * Request initialized.
  *
  * @param sre the sre
  */
 @Override
 public void requestInitialized(ServletRequestEvent sre) {
   ServletRequest request = sre.getServletRequest();
   Locale locale = LocaleManager.INSTANCE.resolveLocale(request);
   request.setAttribute("locale", locale);
 }