private void registerNetflixModule(RestTemplate restTemplate) {
List<HttpMessageConverter<?>> converters = restTemplate.getMessageConverters();
for (HttpMessageConverter<?> converter : converters) {
if(converter instanceof MappingJacksonHttpMessageConverter) {
MappingJacksonHttpMessageConverter jsonConverter = (MappingJacksonHttpMessageConverter) converter;
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new NetFlixModule());
jsonConverter.setObjectMapper(objectMapper);
}
}
}