code: public boolean matches(PathElement pe) {
          return pe.key.equals(key) && (isWildcard() || pe.value.equals(value));
      }
docs: Determine whether the given element matches this element.
  An element matches this element when keys are equal, values are equal
  or this element value is a wildcard.
  @param pe the element to check
  @return {@code true} if the element matches