code: public boolean matches(final Node node) {
          if (node.getNodeType() == Node.ELEMENT_NODE) {
              return matches(((Element) node).getAttribute(ATTRIBUTE_NAME_CLASS));
          }
          return false;
      }
docs: Test if given DITA class string matches this DITA class.
  
  @param node DOM DITA element
  @return {@code true} if given node is an Element and its class matches this class, otherwise {@code false}