@PostConstruct protected void init(){
  logger.debug("Create the RestTemplate instance that will be wrapped");
  makeRestTemplateWithCustomObjectMapper(restTemplate);
  logger.debug("Set interceptor for authentication");
  List<ClientHttpRequestInterceptor> interceptors=Collections.<ClientHttpRequestInterceptor>singletonList(formLoginAuthenticationCsrfTokenInterceptor);
  restTemplate.setRequestFactory(new InterceptingClientHttpRequestFactory(restTemplate.getRequestFactory(),interceptors));
}

@ PostConstruct protected void init ( ) { logger . debug ( "Create the RestTemplate instance that will be wrapped" ) ; makeRestTemplateWithCustomObjectMapper ( restTemplate ) ; logger . debug ( "Set interceptor for authentication" ) ; List < ClientHttpRequestInterceptor > interceptors = Collections . < ClientHttpRequestInterceptor > singletonList ( formLoginAuthenticationCsrfTokenInterceptor ) ; restTemplate . setRequestFactory ( new InterceptingClientHttpRequestFactory ( restTemplate . getRequestFactory ( ) , interceptors ) ) ; }
initialize the internal resttemplate instance
