src/org/kocakosm/pitaya/net/MediaType.java
public static MediaType create(String type, String subtype)
	{
		Map<String, String> params = Collections.emptyMap();
		return create(type, subtype, params);
	}
public static MediaType create(String type, String subtype)
	{
		Map<String, String> params = Collections.emptyMap();
		return create(type, subtype, params);
	}
Creates a new {@code MediaType} with the given type and subtype.

@param type the type.
@param subtype the subtype.

@return the created {@code MediaType} instance.

@throws NullPointerException if one of the arguments is {@code null}.
@throws IllegalArgumentException if type or subtype is invalid or if
a wildcard is used for the type, but not for the subtype.