code: private static boolean containsAllChildrenMatch(PathQueryNode path) {
          LocationStepQueryNode[] steps = path.getPathSteps();
          int count = 0;
          for (int i = 0; i < steps.length; i++) {
              if (steps[i].getNameTest() == null && !steps[i].getIncludeDescendants()) {
                  if (i == steps.length - 1 && count == 0) {
                      return true;
                  }
                  count++;
              }
          }
          return false;
      }
docs: Returns <code>true</code> if <code>path</code> contains exactly one
  location step which matches all node names. That is, matches any children
  of a given node. That location step must be the last one in the sequence
  of location steps.
  
  @param path the path node.
  @return <code>true</code> if the last step matches any node name.