private void endRecord() throws SAXException {
        if (inRecord) {
            inRecord = false;

            LOGGER.trace(() -> LogUtil.message("endRecord location: {}", reader.getCurrentLocationAsEnd()));
            getContentHandler().endElement(NAMESPACE, XML_ELEMENT_RECORD, XML_ELEMENT_RECORD);
        }
    }
Outputs a data element if required using the current match or another
stored match.
stroom-pipeline/src/main/java/stroom/pipeline/xml/converter/ds3/DS3Parser.java