public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
super(endpoint, processor);
this.endpoint = endpoint;
context = (SpringCamelContext) endpoint.getCamelContext();
if (context != null && endpoint.getMessageChannel() == null) {
channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
inputChannelName = endpoint.getDefaultChannel();
if (ObjectHelper.isNullOrBlank(inputChannelName)) {
inputChannelName = endpoint.getInputChannel();
}
if (!ObjectHelper.isNullOrBlank(inputChannelName)) {