}
public void render(OWLOntology ontology, Writer writer) throws OWLRendererException {
ManchesterOWLSyntaxFrameRenderer ren = new ManchesterOWLSyntaxFrameRenderer(getOWLOntologyManager(), ontology, writer);
OWLOntologyFormat format = getOWLOntologyManager().getOntologyFormat(ontology);
if(format instanceof NamespaceOWLOntologyFormat) {
NamespaceOWLOntologyFormat namespaceFormat = (NamespaceOWLOntologyFormat) format;
Map<String, String> prefixMap = namespaceFormat.getNamespacesByPrefixMap();
for(String prefix : prefixMap.keySet()) {
ren.getNamespaceManager().setPrefix(prefix, prefixMap.get(prefix));