@Override protected void doExecute(IZKClient zk) throws Exception { if (zk.exists(path) == null) { zk.createWithParents(path, "", ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); } // Call the editor ConsoleEditor editor = editorFactory.create(getTerminal()); editor.setTitle("Znode"); editor.setContentManager(new ZookeeperContentManager(zk)); editor.open(path); editor.setOpenEnabled(false); editor.start(); }