public static Ontology getOntologyObject(ExtendedIterator<Ontology> ontologies) {
        Ontology o = null;
        if (ontologies.hasNext()) {
            o = ontologies.next();
        }

        if (ontologies.hasNext()) {
            log.warn("More than one ontology object was found.");
        }
        return o;
    }