private RestTemplate getAnonymousRestTemplate() {
RestTemplate template = new RestTemplate(httpClientFactory);
List<HttpMessageConverter<?>> converters = new ArrayList<HttpMessageConverter<?>>();
converters.add(mappingJacksonHttpMessageConverter);
template.setMessageConverters(converters);
template.setErrorHandler(new SyncopeClientErrorHandler());
return template;
}