if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) ((Library) requestTarget)
.loadOntologies(this.cache);
} else if (CachingPolicy.DISTRIBUTED.equals(getCachingPolicy())) {
if (requestTarget instanceof Library && !((Library) requestTarget).isLoaded()) {
Library lib = (Library) requestTarget;
lib.loadOntologies(lib.getCache());
}
} else {
log.error("Tried to load ontology resource {} using a null cache.", requestTarget);
}
}