@Override
	public MediaType convertFromText(String value, Class<?> targetType, String optionContext) {
		return MediaType.parseMediaType(value);
	}
Knows how to parse String representations of {@link MediaType}.

@author Eric Bottard
spring-xd-shell/src/main/java/org/springframework/xd/shell/converter/MediaTypeConverter.java