}
private void recordImportSuccess(Owner owner, Map data,
ConflictOverrides forcedConflicts, String filename) {
ImportRecord record = new ImportRecord(owner);
Meta meta = (Meta) data.get("meta");
if (meta != null) {
record.setGeneratedBy(meta.getPrincipalName());
record.setGeneratedDate(meta.getCreated());
}
record.setUpstreamConsumer(createImportUpstreamConsumer(owner, null));
record.setFileName(filename);
String msg = i18n.tr("{0} file imported successfully.", owner.getKey());
if (!forcedConflicts.isEmpty()) {
msg = i18n.tr("{0} file imported forcibly", owner.getKey());
}
record.recordStatus(ImportRecord.Status.SUCCESS, msg);
this.importRecordCurator.create(record);
}