// Stop and deactivate composites
CompositeActivator compositeActivator = runtime.getCompositeActivator();
for (Composite composite : domainComposite.getIncludes()) {
try {
for (Component component : composite.getComponents()) {
compositeActivator.stop(component);
}
} catch (ActivationException e) {
throw new ServiceRuntimeException(e);
}
}