public static boolean isValidMediaType(final String mediaType) {
    return (mediaType != null) && MEDIA_TYPES.values().contains(mediaType.toLowerCase());
  }
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.

@param mediaType Internet media type for the file
@return true if it is supported, false if not.