ZkClient implements  AutoCloseable { public boolean deleteLockPath(String path, String child) { try { List<String> children = this.getChildren(path); if(children.size() == 0){ delete(path); }else if (children.size() == 1 && children.get(0).equals(child)){ delete(path + "/" + child); delete(path); }else if(children.size() > 1){ delete(path +"/" + child); if(this.getChildren(path).size() == 0){ delete(path); } }else { log.error("Lock path corrupted !!!!"); } }catch (Exception e){ return false; } return true; } ZkClient(CuratorFramework client, boolean isServer);  ZkClient(String serverSet, boolean isServer); void rebuild(); void electLeader(String ELECTION_PATH); boolean isLeader(); void start(); void stop(); void set(String path, String data); String get(String path); void set(String path, String data, boolean compress); String get(String path, boolean compress); List<String> list(String path); List<String> getChildren(String path); boolean createIfNotExist(String path, String data); boolean delete(String path); boolean createLockPath(String path, String child, String data); boolean deleteLockPath(String path, String child); CuratorFramework getClient(); String getConnectionString(); @Override void close();  }
@Test public void deleteLockPath() throws Exception { }