@SuppressWarnings("null")
OWLOntologyID newID = new OWLOntologyID(Optional.of(IRI
.create(value)), handler.getOntology().getOntologyID()
.getVersionIRI());
handler.getOWLOntologyManager().applyChange(
new SetOntologyID(handler.getOntology(), newID));
}
if (localName.equals("versionIRI")) {
@SuppressWarnings("null")
OWLOntologyID newID = new OWLOntologyID(handler.getOntology()
.getOntologyID().getOntologyIRI(), Optional.of(IRI
.create(value)));
handler.getOWLOntologyManager().applyChange(
new SetOntologyID(handler.getOntology(), newID));
}
}