// get a node manager service reference. This will have to have its
// physical endpoint set by the domain node manage we have just
// configured
NodeManagerService nodeManagerService = getService(NodeManagerService.class,
"NodeManagerComponent/NodeManagerService",
domainManagementRuntime,
domainManagementComposite);
// add contributions
for (org.apache.tuscany.sca.domain.model.Contribution contribution : node.getContributions().values()){
nodeManagerService.addContribution(contribution.getContributionURI(),
contribution.getContributionURL().toString());
}
// deploy composite
nodeManagerService.deployComposite(compositeName.toString());
// start node
nodeManagerService.start();
// TODO
// somewhere we need to add the deployed composites into the node model
// reset the endpoint setting function