docs: @SuppressWarnings("unused")
    private static final void dump(HttpClient client, HttpUriRequest req) {
      if (logger.isTraceEnabled()) {
        StringBuilder sb = new StringBuilder("\n=== Request ===");
        sb.append("\n").append(req.getRequestLine());
        for (Header h : req.getAllHeaders()) {
          sb.append("\n").append(h.getName()).append(": ").append(h.getValue());
        }
        logger.trace(sb.toString());
        
        HttpResponse resp = null;
        try {
          resp = client.execute(req);
        } catch (Exception e) {
          logger.trace("Error executing request", e);
          return;
        }
        
        sb = new StringBuilder("\n=== Response ===");
        sb.append("\n").append(resp.getStatusLine());
        for (Header h : resp.getAllHeaders()) {
          sb.append("\n").append(h.getName()).append(": ").append(h.getValue());
        }
        logger.trace(sb.toString());
        
        HttpEntity entity = resp.getEntity();
        if (entity != null) {
          sb = new StringBuilder("\n=== Content ===");
          try {
            int len = (int) entity.getContentLength();
            if (len < 0) len = 100;
            ByteArrayOutputStream baos = new ByteArrayOutputStream(len);
            entity.writeTo(baos);
            sb.append("\n").append(baos.toString("UTF-8"));
            logger.trace(sb.toString());
          } catch (IOException e) {
            logger.trace("Error reading content", e);
          }
        }
      }
    }