RouteDefinition definition = from(_endpoint);
definition.routeId(_endpoint);
Map<String, ErrorHandlerBuilder> handlers = lookup(ErrorHandlerBuilder.class);
if (handlers.isEmpty()) {
definition.errorHandler(loggingErrorHandler());
} else if (handlers.size() == 1) {
definition.errorHandler(handlers.values().iterator().next());
} else {
throw BusMessages.MESSAGES.maxOneExceptionHandler(handlers.keySet());
}