public void setRecursivelyOn(ZooKeeper zkClient, ZkPathPattern pattern) throws KeeperException, InterruptedException {
    for (String each : pattern.findMatchingPaths(zkClient, "/")) {
      System.out.println("Set ACL " + asZkAcl() + " recursively on " + each);
      setRecursivelyOnSingle(zkClient, each);
    }
  }
Sets the ACL on the znode indicated by the given pattern
ambari-agent/src/main/java/org/apache/ambari/tools/zk/ZkAcl.java