private void configureModuleConverters(String contentTypeString, Module module, boolean isInput) {
if (logger.isDebugEnabled()) {
logger.debug("module " + (isInput ? "input" : "output") + "Type is " + contentTypeString);
}
SimpleModule sm = (SimpleModule) module;
try {
MimeType contentType = resolveContentType(contentTypeString, module);
AbstractMessageChannel channel = getChannel(module, isInput);
CompositeMessageConverter converters = null;
try {
converters = converterFactory.newInstance(contentType);
}
catch (ConversionException e) {
throw new ModuleConfigurationException(e.getMessage() +
"(" +
module.getName() + " --" + (isInput ? "input" : "output") + "Type=" + contentTypeString
+ ")");
}
Class<?> dataType = MessageConverterUtils.getJavaTypeForContentType(contentType,
sm.getApplicationContext().getClassLoader());
if (dataType == null) {
throw new ModuleConfigurationException("Content type is not supported for " +
module.getName() + " --" + (isInput ? "input" : "output") + "Type=" + contentTypeString);
}
else {