public String[] getDeployedServiceAssembliesForComponent(String componentName) throws Exception {
String[] result = null;
// iterate through the service assembilies
Set tmpList = new HashSet();
for (Iterator iter = serviceAssembilies.values().iterator();iter.hasNext();) {
ServiceAssembly sa = (ServiceAssembly) iter.next();
ServiceUnit[] sus = sa.getServiceUnits();
if (sus != null) {
for (int i = 0;i < sus.length;i++) {
if (sus[i].getTarget().getComponentName().equals(componentName)) {
tmpList.add(sa.getIdentification().getName());
}
}
}
}
result = new String[tmpList.size()];