@Override public void init() throws ServletException { super.init(); if (environment == null) { info("loading environment..."); try { loadEnvironment(); } catch (IOException e) { warn("failed to load environment."); throw new GeneralException("Error loading environment", e); } info("done loading environment."); } if (getInitialization() == null) { info("Caution: no initializer set for " + getClass().getSimpleName() + ". Skipping..."); } else { getInitialization().setEnvironment(getEnvironment()); getInitialization().setServlet(this); getInitialization().init(); setExceptionHandler(getInitialization().getExceptionHandler()); } }