// now lets turn all of the event driven consumer processors into a single route
if (!eventDrivenProcessors.isEmpty()) {
Processor processor = Pipeline.newInstance(eventDrivenProcessors);
// and wrap it in a unit of work so the UoW is on the top, so the entire route will be in the same UoW
Processor unitOfWorkProcessor = new UnitOfWorkProcessor(processor);
// and create the route that wraps the UoW
Route edcr = new EventDrivenConsumerRoute(getEndpoint(), unitOfWorkProcessor);
edcr.getProperties().put(Route.ID_PROPERTY, route.idOrCreate());
edcr.getProperties().put(Route.PARENT_PROPERTY, Integer.toHexString(route.hashCode()));