@Override
    public void startStream() {
        //LOGGER.trace("startStream called");
        super.startStream();
        doneElement = false;
    }
Writes out XML and records segment boundaries as it goes.
stroom-pipeline/src/main/java/stroom/pipeline/writer/XMLWriter.java