if (child instanceof RegistryOntology) {
O o = getCache().getStoredOntology(((RegistryOntology) child).getIRI(), returnType);
// Should never be null if the library was loaded correctly (an error should have already been
// thrown when loading it), but just in case.
if (o != null) ontologies.add(o);
else throw new RegistryOntologyNotLoadedException((RegistryOntology) child);
}
}
return ontologies;
}