brikar-client/src/main/java/com/truward/brikar/client/rest/RestOperationsFactory.java
@Nonnull
  public RestOperations getRestOperations() {
    final HttpClientBuilder builder = HttpClientBuilder.create();
    initDefaultHttpClientBuilder(builder);

    httpRequestFactory = new HttpComponentsClientHttpRequestFactory(builder.build());
    final RestTemplate restTemplate = new RestTemplate(messageConverters);
    restTemplate.setRequestFactory(httpRequestFactory);
    return restTemplate;
  }
@Nonnull
  public RestOperations getRestOperations() {
    final HttpClientBuilder builder = HttpClientBuilder.create();
    initDefaultHttpClientBuilder(builder);

    httpRequestFactory = new HttpComponentsClientHttpRequestFactory(builder.build());
    final RestTemplate restTemplate = new RestTemplate(messageConverters);
    restTemplate.setRequestFactory(httpRequestFactory);
    return restTemplate;
  }
Returns rest operations object, suitable for use with the specified credentials

@return New instance of {@link RestOperations} with all the connection settings provided prior to calling this