@Override
public int complete(final String buffer,
final int cursor,
@SuppressWarnings("rawtypes") final List candidates) {
StringsCompleter delegate = new StringsCompleter();
try {
List<Bus> busses = cxfController.getBusses();
for (Bus b : busses) {
ServerRegistry reg = b.getExtension(ServerRegistry.class);
List<Server> servers = reg.getServers();
for (Server serv : servers) {
if (acceptsFeature(serv)) {
String qname = serv.getEndpoint().getEndpointInfo().getName().getLocalPart();
delegate.getStrings().add(qname);
}
}
}
} catch (Exception e) {
// Ignore
}
return delegate.complete(buffer, cursor, candidates);
}