*/
private OutputStream stream(Object object) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
if(object instanceof OWLOntology){
OWLOntology o = (OWLOntology) object;
ManchesterOWLSyntaxOntologyStorer mosos = new ManchesterOWLSyntaxOntologyStorer();
try {
mosos.storeOntology(o.getOWLOntologyManager(), o, new StreamDocumentTarget(out), new ManchesterOWLSyntaxOntologyFormat());
} catch (OWLOntologyStorageException e) {
log.error("Cannot stream the ontology",e);
throw new RuntimeException(e);
}
}else if (object instanceof Model){