public static String getText(final List<Event> events) {
        final CharBuffer cb = new CharBuffer(100);

        // Unwind all buffered events into the handler.
        for (final Event event : events) {
            if (event.isCharacters()) {
                cb.append(event.toString());
            }
        }

        final String text = cb.toString();
        cb.clear();

        return text;
    }
Creates an text string from the content events in the event stack
captured for the matched record.
stroom-pipeline/src/main/java/stroom/pipeline/xml/event/EventListUtils.java