@Override
    public Collection<Severity> getSeverities() {
        return statsMap.keySet();
    }
Flags records that contain errors so that the RecordOutputFilter can exclude
them from the output.
stroom-pipeline/src/main/java/stroom/pipeline/errorhandler/RecordErrorReceiver.java