log.debug("Response mime type: " + responseWrapper.getContentType());
Document id = responseWrapper.getPage();
log.debug("Got document from filter chain: " + id);
// get initial pipeline and pass the request to it
Pipeline pipeline = getInitialPipeline();
if(pipeline == null)
throw new NullPointerException("Initial pipeline must be set "
+ "before invoking toxicity!");
if(id != null) {
Document is = pipeline.process(id);
//Boolean noCache = CachingAspect.getNoCache();
//if(noCache == null || noCache.booleanValue()) {
responseWrapper.setHeader("Cache-Control", "no-cache");
responseWrapper.setHeader("Pragma", "no-cache");
responseWrapper.setDateHeader("Last-Modified", System.currentTimeMillis());