class OntologyCacheImpl implements OntologyCache {

    @Override
    public void removeFromCache(String recordIdStr, String commitIdStr) {
        String key = generateKey(recordIdStr, commitIdStr);
        getOntologyCache().ifPresent(cache -> {
            if (cache.containsKey(key)) {
                cache.remove(key);
            }
        });
    }

}