@Override
    public void endElement(String namespaceURI, String localName, String qName)
            throws SAXException {
        if (SOURCE_CODE.equals(localName)) {
            try {
                handleMacro();
            } catch (IOException e) {
                throw new SAXException(e);
            } finally {
                resetMacroState();
            }
        }
    }
Handler for macros in flat open documents
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/odf/FlatOpenDocumentMacroHandler.java