// lets add ourselves as a consumer
consumer = getEndpoint().createConsumer(this);
// if the consumer has a polling strategy then invoke that
if (consumer instanceof PollingConsumerPollingStrategy) {
PollingConsumerPollingStrategy strategy = (PollingConsumerPollingStrategy) consumer;
strategy.onInit();
} else {
// for regular consumers start it
ServiceHelper.startService(consumer);
}
}