private void logAndCompleteProcessing(final RefDataLoader refDataLoader,
                                          final Severity severity,
                                          final ProcessingState processingState,
                                          final String message,
                                          final Throwable e) {
        final String msg;
        if (message != null) {
            msg = message;
        } else if (e != null) {
            msg = e.getMessage();
        } else {
            msg = null;
        }
        log(severity, msg, e);
        refDataLoader.completeProcessing(processingState);
    }
Loads reference data that meets the supplied criteria into the current
reference data key, value maps.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/ReferenceDataLoadTaskHandler.java