public List<DeployedService> getDeployedServices() {
List<DeployedService> list = new ArrayList<DeployedService>();
for (ServiceRecord record :
impl.getServiceRecords(ServiceRecord.ACTIVE_SERVICE_RECORD)) {
ServiceBeanDelegate delegate = impl.getServiceBeanContainer().getServiceBeanDelegate(record.getServiceID());
if(delegate!=null) {
DeployedService deployed = new DeployedService(delegate.getServiceElement(),
delegate.getServiceBeanInstance(),
delegate.getComputeResourceUtilization());
list.add(deployed);
}
}
return Collections.unmodifiableList(list);