class OntologyRecordVersioningService extends BaseVersioningService<OntologyRecord> {

    @Override
    public void addCommit(Branch branch, Commit commit, RepositoryConnection conn) {
        Optional<com.mobi.rdf.api.Resource> recordOpt = getRecordIriIfMaster(branch, conn);
        recordOpt.ifPresent(recordId -> commit.getBaseCommit_resource().ifPresent(baseCommit ->
                updateOntologyIRI(recordId, commit, conn)));
        catalogUtils.addCommit(branch, commit, conn);
    }

}