docs: public Response createCharsetResponse(CloseableHttpResponse httpResponse) throws IOException {
          HttpEntity entity = httpResponse.getEntity();
          Charset charset = ContentType.getOrDefault(httpResponse.getEntity()).getCharset();
          charset = (charset == null) ? Charset.defaultCharset() : charset;
          return Response
                  .status(httpResponse.getStatusLine().getStatusCode())
                  .entity(entity != null ? IOUtils.toString(entity.getContent(), charset) : null)
                  .build();
      }