class CatalogProvUtilsImpl implements CatalogProvUtils {

    @Override
    public void endCreateActivity(CreateActivity createActivity, Resource recordIRI) {
        Entity recordEntity = entityFactory.createNew(recordIRI, createActivity.getModel());
        recordEntity.addGeneratedAtTime(OffsetDateTime.now());
        recordEntity.addProperty(vf.createLiteral(config.getRepositoryId()), vf.createIRI(atLocation));
        createActivity.addGenerated(recordEntity);
        finalizeActivity(createActivity);
        provenanceService.updateActivity(createActivity);
    }

}