code: public static boolean acceptDescendant(String pattern, String absPath)
     {
        absPath = normalizePath(absPath);
        pattern = adopt2JavaPattern(pattern);
  
        // allows any descendants after
        pattern += "(/.+)?";
  
        return absPath.matches(pattern);
     }
docs: Returns <code>true</code> if a specified path or any descendant path
  is matched by pattern.
  
  @param pattern
  pattern for node path
  @param absPath
  node absolute path
  @return a <code>boolean</code>.