public static boolean isValidMediaType ( final String mediaType ) { return ( mediaType != null ) && MEDIA_TYPES . values ( ) . contains ( mediaType . toLowerCase ( ) ) ; }
Checks if the media type is supported by the service .