}
if (previousOutputChannel != null) {
BridgeHandler handler = new BridgeHandler();
handler.setBeanFactory(this.context.getBeanFactory());
handler.setOutputChannel(inputChannel);
handler.afterPropertiesSet();
ConsumerEndpointFactoryBean bridgeFactoryBean = new ConsumerEndpointFactoryBean();
bridgeFactoryBean.setInputChannel(previousOutputChannel);
bridgeFactoryBean.setHandler(handler);
try {
// TODO: might not be necessary to pass this context, but the FB requires non-null