code: private static void configureRestTemplate(RestTemplate restTemplate, String baseUri,
  											  ClientHttpRequestFactory clientHttpRequestFactory) {
  		restTemplate.setRequestFactory(clientHttpRequestFactory);
  		restTemplate.setUriTemplateHandler(new DefaultUriBuilderFactory(baseUri));
  		restTemplate.getInterceptors().add(new CredHubRequestInterceptor());
  		restTemplate.setMessageConverters(Arrays.asList(
  				new ByteArrayHttpMessageConverter(),
  				new StringHttpMessageConverter(),
  				new MappingJackson2HttpMessageConverter(JsonUtils.buildObjectMapper())));
  	}
docs: Configure a {@link RestTemplate} for communication with a CredHub server.
  
  @param restTemplate             an existing {@link RestTemplate} to configure
  @param baseUri                  the base URI for the CredHub server
  @param clientHttpRequestFactory the {@link ClientHttpRequestFactory} to use when
  creating new connections