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