return false;
}
// if error handler ref is configured it may refer to a context scoped, so we need to check this first
// the XML DSL will configure error handlers using refs, so we need this additional test
if (errorHandlerRef != null) {
ErrorHandlerFactory routeScoped = getErrorHandlerBuilder();
ErrorHandlerFactory contextScoped = context.getErrorHandlerBuilder();
return routeScoped != null && contextScoped != null && routeScoped == contextScoped;
}
return contextScopedErrorHandler;
}