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);
// start the node
// TODO - should be done as a management action.
node.start();