class CatalogProvUtilsImpl implements CatalogProvUtils {

    @Override
    public void endDeleteActivity(DeleteActivity deleteActivity, Record record) {
        Entity recordEntity = entityFactory.getExisting(record.getResource(), deleteActivity.getModel()).orElseThrow(()
                -> new IllegalStateException("No Entity found for record."));
        recordEntity.addInvalidatedAtTime(OffsetDateTime.now());

        finalizeActivity(deleteActivity);

        record.getProperty(vf.createIRI(_Thing.title_IRI))
                .ifPresent(v -> recordEntity.addProperty(v, vf.createIRI(_Thing.title_IRI)));

        provenanceService.updateActivity(deleteActivity);
    }

}