code: private void responseEntity(String html, HttpServletResponse servletResponse)
              throws IOException {
          PrintWriter printWriter = servletResponse.getWriter();
          try {
              printWriter.write(html);
              printWriter.flush();
          } finally {
              closeQuietly(printWriter);
          }
      }
docs: Copy response body data (the entity) from the proxy to the servlet client.