List<?> children = nav.next();
for (Object child : children) {
if (child instanceof Channel) {
if (includeErrorHandler) {
// special for error handler as they are tied to the Channel
Processor errorHandler = ((Channel) child).getErrorHandler();
if (errorHandler != null && errorHandler instanceof Service) {
services.add((Service) errorHandler);
}
}
Processor next = ((Channel) child).getNextProcessor();
if (next != null && next instanceof Service) {
services.add((Service) next);
}
}
if (child instanceof Service) {