private AbstractMessageChannel getChannel(Module module, boolean isInput) throws Exception {
		String name = isInput ? "input" : "output";
		Object channel = module.getComponent(name, Object.class);

		if (AopUtils.isJdkDynamicProxy(channel)) {
			return (AbstractMessageChannel) (((Advised) channel).getTargetSource().getTarget());
		}

		return (AbstractMessageChannel) channel;
	}
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