code: private boolean logHeaderRequestId(final HttpResponse response) {
          final String reqIdHeader = response.getHeaders()
                  .get(HttpResponseHandler.X_AMZN_REQUEST_ID_HEADER);
          final boolean isHeaderReqIdAvail = reqIdHeader != null;
  
          if (requestIdLog.isDebugEnabled() || requestLog.isDebugEnabled()) {
              final String msg = HttpResponseHandler.X_AMZN_REQUEST_ID_HEADER + ": "
                                 + (isHeaderReqIdAvail ? reqIdHeader : "not available");
              if (requestIdLog.isDebugEnabled()) {
                  requestIdLog.debug(msg);
              } else {
                  requestLog.debug(msg);
              }
          }
          return isHeaderReqIdAvail;
      }
docs: Used to log the "x-amzn-RequestId" header at DEBUG level, if any, from the response. This
  method assumes the apache httpClientSettings request/response has just been successfully
  executed. The request id is logged using the "com.amazonaws.requestId" logger if it was
  enabled at DEBUG level; otherwise, it is logged at DEBUG level using the
  "com.amazonaws.request" logger.
  
  @return true if the AWS request id is available from the httpClientSettings header; false
  otherwise.