using javax.ws.rs.core.MediaType constants for media types in the @Produces and @Consumes annotations