code: @Override
  	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
  			throws IOException, ServletException {
  		final String resource = request.getParameter("resource");
  		if (resource != null && customResources.get(resource) != null) {
  			final String customResource = customResources.get(resource);
  
  			final HttpServletResponse httpResponse = (HttpServletResponse) response;
  			MonitoringController.addHeadersForResource(httpResponse, customResource);
  
  			if (customResources.get("useForward") == null) {
  				request.getRequestDispatcher(customResource).include(request, response);
  			} else {
  				request.getRequestDispatcher(customResource).forward(request, response);
  			}
  		} else {
  			chain.doFilter(request, response);
  		}
  	}
docs: {@inheritDoc}