OWLNamedIndividual iSes = __factory.getOWLNamedIndividual(IRI.create(session.getID()));
additions.add(new AddAxiom(ont, __factory.getOWLClassAssertionAxiom(cSession, iSes)));
OWLDatatype anyURI = __factory.getOWLDatatype(IRI.create("http://www.w3.org/2001/XMLSchema#anyURI"));
OWLLiteral hasIdValue = __factory.getOWLTypedLiteral(session.getID().toString(), anyURI);
additions.add(new AddAxiom(ont, __factory.getOWLDataPropertyAssertionAxiom(hasId, iSes, hasIdValue)));
mgr.applyChanges(additions);
StringDocumentTarget tgt = new StringDocumentTarget();
try {
mgr.saveOntology(ont, new RDFXMLOntologyFormat(), tgt);
return ont;