http://jersey.java.net/nonav/apidocs/1.15/jersey/com/sun/jersey/api/client/WebResource.html offers two methods for retrieving entities. One takes Class, the other GenericType. GenericType is clumsy to construct and isn't great from a code-readability point of view.
I propose replacing it with an API discussed here: https://github.com/FasterXML/jackson-core/issues/41#issuecomment-10432125
Assuming we use something like ClassMate (discussed in the above link) I propose the following API:
The resulting user code would look like this:
Notice how you can specify multiple type parameters (GenericType is limited to one) and the syntax is consistent whether you specify simple types or compound types. Lastly, this Builder pattern provides far more flexibility at runtime.
See http://www.cowtowncoder.com/blog/archives/2010/12/entry_436.html for a related discussion
I believe very little effort would be involved in integrating this into Jersey 2.0 because the ClassMate library exists and already does all the heavy lifting.