List<ServiceDescription> services = registry
.query(new ServiceDescription.Builder(null,
serviceClass).build());
Iterator<ServiceDescription> it = services.iterator();
while (it.hasNext()) {
ServiceDescription sd = it.next();
serviceNames.add(new SelectItem(
sd.getEndpoint().toString(), sd.getName()));
serviceNameMap.put(sd.getEndpoint().toString(), sd
.getName());
}
}
}