code: protected boolean compareNodeNames(String nodePathElement, String nodeName) {
          return mSelectorIdentifier == SelectorIdentifier.SELECT_BY_REGEX ? Pattern.matches(nodePathElement, nodeName) :
                nodePathElement.equals(nodeName);
      }
docs: Compare a node path element (provided as argument of the selectNode method) to a node name (from a JTree).
  
  @param nodePathElement the node path element to compare with the node name
  @param nodeName the node name
  @return true if both match, false otherwise.