// add owned service stop conditions
Set ownedServices = springConfiguration.getServiceFactories().keySet();
for (Iterator iterator = springConfiguration.getServiceFactories().entrySet().iterator(); iterator.hasNext();) {
Map.Entry entry = (Map.Entry) iterator.next();
ServiceName serviceName = (ServiceName) entry.getKey();
ServiceFactory serviceFactory = (ServiceFactory) entry.getValue();
if (ownedServices.contains(serviceName)) {
serviceFactory.addStopCondition(configurationStopCondition.createOwnedServiceStopCondition());
}
}
return springConfiguration;
}