CacheHttpServletResponseWrapper cacheResponse =
new CacheHttpServletResponseWrapper(response);
chain.doFilter(request, cacheResponse);
cacheResponse.flushBuffer();
// Store as the cache content the result of the response
// if no exception was noted by content generator.
if (request.getAttribute("DisplayException") == null) {
ResponseContent rc = cacheResponse.getContent();