// network.
DistributedSCADomain distributedDomain = new DistributedSCADomainNetworkImpl(domainName);
// create the node that runs the calculator component
EmbeddedNode node = new EmbeddedNode(nodeName);
SCADomain domain = node.attachDomain(distributedDomain);
// the application components are added. The null here just gets the node
// implementation to read a directory from the classpath with the node name
// TODO - should be done as a management action.
node.addContribution(domainName, null);