private GitNode createState() {
   String fabricRepoUrl = "${zk:" + KARAF_NAME + "/http}/git/fabric/";
   GitNode state = new GitNode();
   state.setId("fabric-repo");
   if (group != null && group.isMaster()) {
     state.setUrl(fabricRepoUrl);
   }
   return state;
 }
 private void updateMasterUrl(Group<GitNode> group) {
   if (group.isMaster()) {
     LOGGER.debug("Git repo is the master");
   } else {
     LOGGER.debug("Git repo is not the master");
   }
   try {
     GitNode state = createState();
     group.update(state);
     String url = state.getUrl();
     gitRemoteUrl = getSubstitutedData(curator.get(), url);
     if (group.isMaster()) {
       updateConfigAdmin();
     }
   } catch (Exception e) {
     // Ignore
   }
 }