         Set<MediaType> mediaTypes = parseMediaTypes(((ModelWriter)service).supportedMediaTypes());         Class<? extends Representation> nativeType = ((ModelWriter)service).getNativeType();         