To let RestTemplate
understand generic of returned content we need to define result type reference.
org.springframework.core.ParameterizedTypeReference
has been introduced since 3.2
Wrapper<Model> response = restClient.exchange(url,
HttpMethod.GET,
null,
new ParameterizedTypeReference<Wrapper<Model>>() {}).getBody();
Could be useful to get e.g. List<User>
from a controller.