*/
public static Node newStandaloneNode(String compositeURI, String contributionURL, String... dependentContributionURLs) {
try {
NodeFactory nodeFactory = newInstance();
EndpointRegistry endpointRegistry = new EndpointRegistryImpl(nodeFactory.extensionPointRegistry, null, null);
NodeImpl node = new NodeImpl("default", nodeFactory.deployer, nodeFactory.compositeActivator, endpointRegistry, nodeFactory.extensionPointRegistry, nodeFactory);
if (dependentContributionURLs != null) {
for (int i=dependentContributionURLs.length-1; i>-1; i--) {
node.installContribution(null, dependentContributionURLs[i], null, null, false);
}
}
String curi = node.installContribution(null, contributionURL, null, null, compositeURI == null);
if (compositeURI != null) {
node.addToDomainLevelComposite(curi, compositeURI);
}
return node;
} catch (Exception e) {
throw new RuntimeException(e);