Use the Restlet MediaType class in RestAPI