When my resource methods return a Java object, JAX-RS doesn't actually send the object itself, because an HTTP response body is just a stream of bytes. Something has to turn the object into those ...