HttpEntity entity = clientResponse.getEntity();
InputStream inStream = entity.getContent();
if (inStream != null) {
OutputStream os = response.getOutputStream();
if(TRACE) {
OutputStream tos = new TraceOutputStream(os, System.out, false);
os = tos;
}
StreamUtil.copyStream(inStream, os);
os.flush();
}