api/src/main/java/com/epam/pipeline/manager/git/ApiBuilder.java
@Override
        public Response intercept(final Interceptor.Chain chain) throws IOException {
            final Request original = chain.request();
            if (StringUtils.isEmpty(original.headers().get(headerName))) {
                final Request request = original.newBuilder()
                        .header(headerName, userToken)
                        .build();
                return chain.proceed(request);
            }
            return chain.proceed(original);
        }
/**
         * Adds an authorization header with the provided {@link #userToken} on the request
         * or response.
         * @see Interceptor
         */
Adds an authorization header with the provided  #userToken on the request
or response.
@see Interceptor
Adds an authorization header with the provided #userToken on the request or response . @see Interceptor
@Override
        public Response intercept(final Interceptor.Chain chain) throws IOException {
            final Request original = chain.request();
            if (StringUtils.isEmpty(original.headers().get(headerName))) {
                final Request request = original.newBuilder()
                        .header(headerName, userToken)
                        .build();
                return chain.proceed(request);
            }
            return chain.proceed(original);
        }
@ Override public Response intercept ( final Interceptor . Chain chain ) throws IOException { final Request original = chain . request ( ) ; if ( StringUtils . isEmpty ( original . headers ( ) . get ( headerName ) ) ) { final Request request = original . newBuilder ( ) . header ( headerName , userToken ) . build ( ) ; return chain . proceed ( request ) ; } return chain . proceed ( original ) ; }
Adds an authorization header with the provided {@link #userToken} on the request
 or response.
Adds an authorization header with the provided { @link #userToken } on the request or response .