StringsCompleter delegate = new StringsCompleter();
List<CamelContext> camelContexts = camelController.getCamelContexts();
for (CamelContext camelContext : camelContexts) {
delegate.getStrings().add(camelContext.getName());
}
return delegate.complete(buffer, cursor, candidates);
} catch (Exception e) {
// nothing to do, no completion
}
return 0;
}