@Deprecated
  public static List<NodeAndData> getChildDataAndWatchForNewChildren(ZKWatcher zkw, String baseNode,
    boolean throwOnInterrupt) throws KeeperException {
    List<String> nodes = ZKUtil.listChildrenAndWatchForNewChildren(zkw, baseNode);
    if (nodes != null) {
      List<NodeAndData> newNodes = new ArrayList<>();
      for (String node : nodes) {
        if (Thread.interrupted()) {
          // Partial data should not be processed. Cancel processing by sending empty list.
          return Collections.emptyList();
        }
        String nodePath = ZNodePaths.joinZNode(baseNode, node);
        byte[] data = ZKUtil.getDataAndWatch(zkw, nodePath, throwOnInterrupt);
        newNodes.add(new NodeAndData(nodePath, data));
      }
      return newNodes;
    }
    return null;
  }
Returns the date of child znodes of the specified znode. Also sets a watch on the specified
znode which will capture a NodeDeleted event on the specified znode as well as
NodeChildrenChanged if any children of the specified znode are created or deleted. Returns null
if the specified node does not exist. Otherwise returns a list of children of the specified
node. If the node exists but it has no children, an empty list will be returned.
@param zkw              zk reference
@param baseNode         path of node to list and watch children of
@param throwOnInterrupt if true then just interrupt the thread, do not throw exception
@return list of data of children of the specified node, an empty list if the node exists but
        has no children, and null if the node does not exist
@throws KeeperException if unexpected zookeeper exception
@deprecated Unused
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java