title: GsonBuilder registerTypeAdapter deserialization
body: <p>I am having the following rest template (used for json requests to a server):</p>
  
  <pre><code>public RestTemplate createRestTemplate() {
      RestTemplate restTemplate = new RestTemplate();
  
      GsonBuilder builder = new GsonBuilder();
      builder.registerTypeAdapter(Image.class, new ImageDeserializer());
      builder.registerTypeAdapter(MetaData.class, new MetaDataDeserializer());
      builder.registerTypeAdapter(Vector.class, new VectorsDeserializer());
  
      GsonHttpMessageConverter jsonConverter = new GsonHttpMessageConverter();
      jsonConverter.setGson(builder.create());
  
      FormHttpMessageConverter formHttpMessageConverter = new FormHttpMessageConverter();
      StringHttpMessageConverter stringHttpMessageConverter = new StringHttpMessageConverter();
      final List&lt;HttpMessageConverter&lt;?&gt;&gt; listHttpMessageConverters = restTemplate.getMessageConverters();
  
  
      listHttpMessageConverters.add(jsonConverter);
      listHttpMessageConverters.add(formHttpMessageConverter);
      listHttpMessageConverters.add(stringHttpMessageConverter);
      restTemplate.setMessageConverters(listHttpMessageConverters);
      return restTemplate;
  }
  </code></pre>
  
  <p>For some reason the third registerTypeAdapter call to the deserializer <code>VectorsDeserializer</code> does nothing. I am probably missing something here, any ideas/clarifications are very welcome.</p>