monitor.fireAfterProxy( request, response, method, capturedData );
if( !response.isCommitted() )
{
StringToStringsMap responseHeaders = capturedData.getResponseHeaders();
// capturedData = null;
// copy headers to response
HttpServletResponse httpResponse = ( HttpServletResponse )response;
for( String name : responseHeaders.keySet() )
{
for( String header : responseHeaders.get( name ) )
httpResponse.addHeader( name, header );
}
IO.copy( new ByteArrayInputStream( capturedData.getRawResponseBody() ), httpResponse.getOutputStream() );
}