code: public boolean matches(ResourcePathNode<Pattern> patternPath) {
  
      // currently does not support ** segments like in Ant
      if (isRoot()) {
        if (!patternPath.isRoot()) {
          return false;
        }
      } else if (patternPath.isRoot()) {
        return false;
      } else if (!this.parent.matches(patternPath.parent)) {
        return false;
      }
      if (patternPath.data == null) {
        return patternPath.name.equals(this.name);
      } else {
        return patternPath.data.matcher(this.name).matches();
      }
    }
docs: Checks if this {@link ResourcePathNode} matches to the given {@link #createPattern(String) pattern path}.
  
  @param patternPath the {@link #createPattern(String) pattern path} to match.
  @return {@code true} if this path matches the given the given {@code patternPath}.