/** * Filter initialization. */ public void init(FilterConfig filterConfig) throws ServletException { ServletContext servletContext = filterConfig.getServletContext(); madvoc = Madvoc.get(servletContext); if (madvoc == null) { madvoc = createMadvoc(filterConfig); try { madvoc.startNewWebApplication(servletContext); } catch (Exception ex) { throw new ServletException("Unable to start Madvoc web application.", ex); } } log = Log.getLogger(MadvocServletFilter.class); madvocController = madvoc.getMadvocController(); }