class OntologyCacheImpl implements OntologyCache {

    @Override
    public Optional<Cache<String, Ontology>> getOntologyCache() {
        if (cacheManager != null) {
            return cacheManager.getCache(CACHE_NAME, String.class, Ontology.class);
        }
        return Optional.empty();
    }

}