@Override
	public void init(final FilterConfig filterConfig) throws ServletException {
		final ServletContext servletContext = filterConfig.getServletContext();

		madvoc = Madvoc.get(servletContext);

		if (madvoc != null) {
			log = LoggerFactory.getLogger(this.getClass());

			madvocController =
				madvoc.webapp().madvocContainer().requestComponent(MadvocController.class);

			return;
		}

		final WebApp webApp = WebApp.get(servletContext);

		if (webApp != null) {
			log = LoggerFactory.getLogger(this.getClass());

			madvocController =
				webApp.madvocContainer().requestComponent(MadvocController.class);

			return;
		}

		throw new ServletException("Neither Madvoc or WebApp found! Use MadvocContextListener to create Madvoc or " +
			"WebApp#withServletContext() to make it available.");
	}
@ Override public void init ( final FilterConfig filterConfig ) throws ServletException { final ServletContext servletContext = filterConfig . getServletContext ( ) ; madvoc = Madvoc . get ( servletContext ) ; if ( madvoc != null ) { log = LoggerFactory . getLogger ( this . getClass ( ) ) ; madvocController = madvoc . webapp ( ) . madvocContainer ( ) . requestComponent ( MadvocController . class ) ; return ; } final WebApp webApp = WebApp . get ( servletContext ) ; if ( webApp != null ) { log = LoggerFactory . getLogger ( this . getClass ( ) ) ; madvocController = webApp . madvocContainer ( ) . requestComponent ( MadvocController . class ) ; return ; } throw new ServletException ( "Neither Madvoc or WebApp found! Use MadvocContextListener to create Madvoc or " + "WebApp#withServletContext() to make it available." ) ; }
Filter initialization.