private static Class<?> resolveJavaType(String type, Module module) throws ClassNotFoundException, LinkageError {
		Assert.isTrue((module instanceof SimpleModule), "Module should be an instance of " +
				SimpleModule.class.getName());
		SimpleModule sm = (SimpleModule) module;
		return ClassUtils.forName(type, sm.getApplicationContext().getClassLoader());
	}
Resolve the {@link org.springframework.util.MimeType} to use for the given content type
specified for the module input/output.

@param type the content type
@param module the underlying module
@return the MimeType
@throws ClassNotFoundException
@throws LinkageError
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/stream/ModuleTypeConversionSupport.java