code: public void addAuthTokenTrace(ClientRequest request, String token, String traceabilityId) {
          if(token != null && !token.startsWith("Bearer ")) {
              if(token.toUpperCase().startsWith("BEARER ")) {
                  // other cases of Bearer
                  token = "Bearer " + token.substring(7);
              } else {
                  token = "Bearer " + token;
              }
          }
          request.getRequestHeaders().put(Headers.AUTHORIZATION, token);
          request.getRequestHeaders().put(HttpStringConstants.TRACEABILITY_ID, traceabilityId);
      }
docs: Add Authorization Code grant token the caller app gets from OAuth2 server and add traceabilityId
  
  This is the method called from client like web server that want to have traceabilityId pass through.
  
  @param request the http request
  @param token the bearer token
  @param traceabilityId the traceability id