I have some REST service using JAX-RS and Jackson. My customer wants to have abstract class as service's return type and I have no clue how to make JAX-RS client return instances of concrete sub-classes. Is this possible for both XML and JSON representation? If so, will appreciate samples and/or links.