for (Entry<String, InterceptStrategy> interceptEntry : lookup(InterceptStrategy.class).entrySet()) {
if (log.isDebugEnabled()) {
log.debug("Adding intercept strategy {} to route {}", interceptEntry.getKey(), _endpoint);
}
definition.addInterceptStrategy(interceptEntry.getValue());
}
Map<String, ErrorListener> errorListeners = lookup(ErrorListener.class);
if (errorListeners.isEmpty()) {
getContext().getWritebleRegistry().put("defaultErrorListener", new DefaultErrorListener());