try {
KRSS2OWLObjectRenderer ren = new KRSS2OWLObjectRenderer(ontology, writer);
ontology.accept(ren);
writer.flush();
} catch (IOException io) {
throw new OWLRendererIOException(io);
} catch (OWLRuntimeException e) {
throw new OWLRendererException(e);
}
}