public void configureMessageConverters(AbstractMessageChannel channel, MimeType contentType,
			ClassLoader classLoader) {
		CompositeMessageConverter converters = null;
		try {
			converters = converterFactory.newInstance(contentType);
		}
		catch (ConversionException e) {
			throw new ModuleConfigurationException(e.getMessage() +
					"(" +
					channel.getComponentName() + "Type=" + contentType + ")");
		}

		Class<?> dataType = MessageConverterUtils.getJavaTypeForContentType(contentType, classLoader);
		if (dataType == null) {
			throw new ModuleConfigurationException("Content type is not supported for " +
					channel.getComponentName() + "Type=" + contentType);
		}
		else {
			channel.setDatatypes(dataType);
			channel.setMessageConverter(converters);
		}

	}
Configure the message converters for the given message channel and content type.
Detect the data types from the provided class loader.

@param channel the message channel to configure the message converters
@param contentType the content type to use
@param classLoader the classloader to search the dataType(s) classes
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/stream/ModuleTypeConversionSupport.java