private static MimeType getMimeType(String contentTypeString, Module module) {
		MimeType mimeType = null;
		if (StringUtils.hasText(contentTypeString)) {
			try {
				mimeType = resolveContentType(contentTypeString, module);
			}
			catch (ClassNotFoundException cfe) {
				throw new IllegalArgumentException("Could not find the class required for " + contentTypeString, cfe);
			}
		}
		return mimeType;
	}
Return {@link org.springframework.util.MimeType} for the given content type string.

@param contentTypeString the content type string
@param module the underlying module
@return the MimeType for the content type string
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/stream/ModuleTypeConversionSupport.java