List<ServiceUnitImpl> sus = new ArrayList<ServiceUnitImpl>();
for (Map.Entry<String, String> unit : assembly.getServiceUnits().entrySet()) {
ServiceUnitDesc suDesc = new ServiceUnitDesc();
suDesc.setIdentification(new Identification());
suDesc.getIdentification().setName(unit.getKey());
suDesc.setTarget(new Target());
suDesc.getTarget().setComponentName(unit.getValue());
ServiceUnitImpl su = new ServiceUnitImpl(suDesc, null, components.get(unit.getValue()));
sus.add(su);
}
registerSA(desc, serviceReference.getBundle(), sus);