code: public static MediaType of(String type, String subtype) {
  		requireNonNull(type,TYPE_CANNOT_BE_NULL);
  		requireNonNull(subtype,"Subtype cannot be null");
  		return fromString(type+"/"+subtype);
  	}
docs: Create a media type
  
  @param type
  The media type primary type
  @param subtype
  The media type subtype
  @return A media type for the specified media range
  @throws NullPointerException
  if any of the specified media range elements is null
  @throws InvalidMediaTypeException
  if any of the specified media range elements is not valid