UtilityExtensionPoint utilities = nodeFactory.registry.getExtensionPoint(UtilityExtensionPoint.class);
this.compositeActivator = utilities.getUtility(CompositeActivator.class);
DomainRegistryFactory domainRegistryFactory =
ExtensibleDomainRegistryFactory.getInstance(nodeFactory.registry);
DomainRegistry domainRegistry =
domainRegistryFactory.getEndpointRegistry(configuration.getDomainRegistryURI(),
configuration.getDomainURI());
this.compositeContext =
new CompositeContext(nodeFactory.registry, domainRegistry, domainComposite,
configuration.getDomainURI(), configuration.getURI(), nodeFactory
.getDeployer().getSystemDefinitions());
// Pass down the context attributes
compositeContext.getAttributes().putAll(configuration.getAttributes());
// Add endpoint descriptions from the node configuration if the domain registry is local
if (!domainRegistry.isDistributed()) {
for (Endpoint e : configuration.getEndpointDescriptions()) {
domainRegistry.addEndpoint(e);
}
}
// Activate the composite
compositeActivator.activate(compositeContext, domainComposite);