Source:
private void createZKPaths(String clusterName) { String path; _zkClient.createPersistent(PropertyPathBuilder.idealState(clusterName)); path = PropertyPathBuilder.clusterConfig(clusterName); _zkClient.createPersistent(path, true); _zkClient.writeData(path, new ZNRecord(clusterName)); path = PropertyPathBuilder.instanceConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.resourceConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.customizedStateConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.propertyStore(clusterName); _zkClient.createPersistent(path); _zkClient.createPersistent(PropertyPathBuilder.liveInstance(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.instance(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.externalView(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.customizedView(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.stateModelDef(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.controller(clusterName)); path = PropertyPathBuilder.controllerHistory(clusterName); final ZNRecord emptyHistory = new ZNRecord(PropertyType.HISTORY.toString()); final List<String> emptyList = new ArrayList<String>(); emptyHistory.setListField(clusterName, emptyList); _zkClient.createPersistent(path, emptyHistory); path = PropertyPathBuilder.controllerMessage(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.controllerStatusUpdate(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.controllerError(clusterName); _zkClient.createPersistent(path); }

Target:
private void createZKPaths(String clusterName) { String path; _zkClient.createPersistent(PropertyPathBuilder.idealState(clusterName)); path = PropertyPathBuilder.clusterConfig(clusterName); _zkClient.createPersistent(path, true); _zkClient.writeData(path, new ZNRecord(clusterName)); path = PropertyPathBuilder.instanceConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.resourceConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.customizedStateConfig(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.propertyStore(clusterName); _zkClient.createPersistent(path); _zkClient.createPersistent(PropertyPathBuilder.liveInstance(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.instance(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.externalView(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.stateModelDef(clusterName)); _zkClient.createPersistent(PropertyPathBuilder.controller(clusterName)); path = PropertyPathBuilder.controllerHistory(clusterName); final ZNRecord emptyHistory = new ZNRecord(PropertyType.HISTORY.toString()); final List<String> emptyList = new ArrayList<String>(); emptyHistory.setListField(clusterName, emptyList); _zkClient.createPersistent(path, emptyHistory); path = PropertyPathBuilder.controllerMessage(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.controllerStatusUpdate(clusterName); _zkClient.createPersistent(path); path = PropertyPathBuilder.controllerError(clusterName); _zkClient.createPersistent(path); }