private void endList() throws SAXException {
        String elementName = "ul";
        if (! listStyleStack.isEmpty()) {
            ListStyle style = listStyleStack.pop();
            elementName = style != null ? style.getTag() : "ul";
        }
        handler.endElement(XHTML, elementName, elementName);
    }
Check if a node is a text node
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/odf/OpenDocumentBodyHandler.java