code: private String getResponseContent(CachingClientHttpResponseWrapper response) throws IOException {
          if (response != null) {
              StringBuilder builder = new StringBuilder();
              
              builder.append("HTTP/1.1 "); // TODO get Http version from message
              builder.append(response.getStatusCode());
              builder.append(" ");
              builder.append(response.getStatusText());
              builder.append(NEWLINE);
              
              appendHeaders(response.getHeaders(), builder);
              
              builder.append(NEWLINE);
              builder.append(response.getBodyContent());
              
              return builder.toString();
          } else {
              return "";
          }
      }
docs: Builds response content string from response object.
  @param response
  @return
  @throws IOException