code: public HttpClientBuilder interceptor(ClientHttpRequestInterceptor interceptor) {
          if (endpoint.getEndpointConfiguration().getClientInterceptors() == null) {
              endpoint.getEndpointConfiguration().setClientInterceptors(new ArrayList<ClientHttpRequestInterceptor>());
          }
  
          endpoint.getEndpointConfiguration().getClientInterceptors().add(interceptor);
          return this;
      }
docs: Sets a client single interceptor.
  @param interceptor
  @return