idToServiceMap.clear();
}
for (final Object o : rawServiceData.values()) {
final CompositeData composite = (CompositeData) o;
final ServiceData service = ServiceData.from(composite);
/*
* Get the service's properties from the JMX enabled runtime
*/
if (!mbeanProvider.isOpen()) {
return new Status(IStatus.WARNING, KarafWorkbenchActivator.PLUGIN_ID, "Connection to MBean server has been closed");
}
final ServiceItem serviceWrapper = new MBeanServiceItem(composite, mbeanProvider, idToBundleMap);
synchronized (serviceSet) {
serviceSet.add(serviceWrapper);
idToServiceMap.put(service.getServiceId(), serviceWrapper);
}
monitor.worked(1);
if (monitor.isCanceled()) {