*/
private RestTemplate getRestJsonTemplate(){
RestTemplate restTemplate = new RestTemplate();
List<HttpMessageConverter<?>> mc = restTemplate.getMessageConverters();
// Add JSON message handler
MappingJacksonHttpMessageConverter json = new MappingJacksonHttpMessageConverter();
List<MediaType> supportedMediaTypes = new ArrayList<MediaType>();
supportedMediaTypes.add(new MediaType("application","json", Charset.forName("UTF-8")));
// Add default media type in case marketplace uses incorrect MIME type, otherwise
// Spring refuses to process it, even if its valid JSON
supportedMediaTypes.add(new MediaType("application","octet-stream", Charset.forName("UTF-8")));
json.setSupportedMediaTypes(supportedMediaTypes);
mc.add(json);
restTemplate.setMessageConverters(mc);
return restTemplate;
}