if (e.getCause() != null && e.getCause() instanceof OWLOntologyChangeException) { throw (OWLOntologyChangeException) e.getCause(); if (e.getCause() != null && e.getCause() instanceof OWLOntologyAlreadyExistsException) { OWLOntologyAlreadyExistsException ex = (OWLOntologyAlreadyExistsException) e.getCause(); throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));
if (e.getCause() != null && e.getCause() instanceof OWLOntologyChangeException) { throw (OWLOntologyChangeException) e.getCause(); if (e.getCause() != null && e.getCause() instanceof OWLOntologyAlreadyExistsException) { OWLOntologyAlreadyExistsException ex = (OWLOntologyAlreadyExistsException) e.getCause(); throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));