refactored HttpServletResponseBufferWrapper