title: Capture and log the response body
body: <p>I have a servlet that handle certain HTTP requests and responses. I want to log the response body before sending back to the client. Is there any way that I can capture the response body before it is send as a <code>HttpServletResponse</code> object from the servlet?</p>