//-- Filter --//
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
final StringWriter sw = new StringWriter(4096*2);
final HttpServletResponse hres = (HttpServletResponse)response;
final HttpBufferedResponse hbufres =
(HttpBufferedResponse)HttpBufferedResponse.getInstance(hres, sw);
chain.doFilter(request, hbufres);
//Bug 1673839: servlet might redirect
if (!hbufres.isSendRedirect())
process((HttpServletRequest)request, hres, xmlfilter(sw.getBuffer()));
}