public void contextInitialized(final ServletContextEvent sce) {
   try {
     m_servletContext = sce.getServletContext();
     WebApp.load(m_servletContext);
     final boolean runServerInHpmaMode = runServerInHpmaMode();
     WebApp.setHPMAMode(runServerInHpmaMode);
     logWebAppInfo();
     logDatabaseInfo();
     PasswordMethod.setDefaultMethod(PasswordMethod.DIGEST_A1, PasswordMethod.RETS_REALM);
   } catch (Throwable e) {
     LOGGER.fatal("Caught", e);
     throw new RuntimeException(e);
   }
 }