/** * Resolve the channel by name. * * @param channelName the name to resolve * @return the MessageChannel object */ protected MessageChannel resolveChannelName(String channelName) { if (endpointConfiguration.getChannelResolver() == null) { endpointConfiguration.setChannelResolver( new BeanFactoryChannelResolver(endpointConfiguration.getBeanFactory())); } return endpointConfiguration.getChannelResolver().resolveDestination(channelName); }