throws Exception {
long startTime = System.currentTimeMillis();
Writer out = new FileWriter(new File(dirHandler.getDir(), "foo.rdf"));
try {
registry.clear();
RdfWriter writer = new RdfXmlWriter(registry, new RdfNamespaceMapImpl());
writer.write(graph, out);
} finally {
out.close();
}
performance.outputResult(graph, startTime, "Testing RDF/XML Write Performance:");
}