* singleton on a node with a particular name, uncomment the first line and
* comment the second line below.
* - To pass a list of more than one node, comment the first line and uncomment the
* second line below.
*/
singleton.setElectionPolicy(new PreferredSingletonElectionPolicy(new SimpleSingletonElectionPolicy(), new NamePreference("node1/singleton")));
//singleton.setElectionPolicy(new PreferredSingletonElectionPolicy(new SimpleSingletonElectionPolicy(), new NamePreference("node1/singleton"), new NamePreference("node2/singleton")));
singleton.build(new DelegatingServiceContainer(context.getServiceTarget(), context.getServiceRegistry()))
.setInitialMode(ServiceController.Mode.ACTIVE)
.install()