@Override
    public void startStream() {
        try {
            depth = 0;
            firstOccurrence = true;
        } finally {
            super.startStream();
        }
    }
Merges XML that has been split into separate XML instances.
stroom-pipeline/src/main/java/stroom/pipeline/filter/MergeFilter.java