private String normaliseBuffer(final Buffer buffer) {
        Buffer buf = buffer;
        if (buf != null) {
            buf = buf.trim();
            if (buf.length() > 0) {
                return buf.toString();
            }
        }

        return null;
    }
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