code: public boolean isTagSupported(Element e)
      {
          if (e.getNodeName() != null && supported.contains(e.getNodeName().toLowerCase())) //completely supported tags
              return true;
          else //special cases
          {
              //empty anchor elements must be preserved
              if (e.getNodeName().toLowerCase().equals("a") && e.hasAttribute("name") 
                      && (e.getTextContent() == null || e.getTextContent().trim().length() == 0))
                  return true;
              else
                  return false;
          }
      }
docs: Checks whether the given tag (DOM element) processing is supported by this factory.
  @param e The DOM element to be checked.
  @return <code>true</code> when the element may be processed by this factory.