@Override
    public void clear(final TextRange textRange) {
        // Clear the event buffer as this is a new record.
        clearBuffer();

        // Clear the namespace context maps.
        namespaceContext.clear();

        // We are processing a new record so reset fields.
        maxElementDepth = 0;
    }
@return value as a string, trimmed and, if ignoreCase is true, converted to lower case
stroom-pipeline/src/main/java/stroom/pipeline/filter/SAXEventRecorder.java