* a RegistryContentException, which however they can catch by calling loadOntologies() and
* getOntologies() in sequence.
*/
fireContentRequested(this);
// If no listener has saved the day by loading the ontologies by now, an exception will be thrown.
if (!loaded) throw new LibraryContentNotLoadedException(this);
Set<O> ontologies = new HashSet<O>();
for (RegistryItem child : getChildren()) {
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