*/
public static void render(@Nonnull OWLOntology ontology,
@Nonnull Writer writer, OWLDocumentFormat format)
throws OWLOntologyStorageException {
try {
OWLAPIOwl2Obo translator = new OWLAPIOwl2Obo(
ontology.getOWLOntologyManager());
final OBODoc result = translator.convert(ontology);
boolean hasImports = ontology.getImports().isEmpty() == false;
NameProvider nameProvider;
if (hasImports) {
// if the ontology has imports
// use it as secondary lookup for labels