MasterMain startMaster(final CuratorClientFactory curatorClientFactory, final String... args)
     throws Exception {
   final MasterMain main = new MasterMain(curatorClientFactory, args);
   main.startAsync().awaitRunning();
   services.add(main);
   return main;
 }
 protected MasterMain startMaster(
     final Map<String, String> environmentVariables, final String... args) throws Exception {
   final MasterMain main = new MasterMain(environmentVariables, args);
   main.startAsync().awaitRunning();
   services.add(main);
   return main;
 }