}
}
private static void tryWriteRdfXml(File file, Graph graph) throws Exception {
final BlankNodeRegistry nodeRegistry = new MemBlankNodeRegistryImpl();
final RdfNamespaceMap map = new RdfNamespaceMapImpl();
final RdfWriter writer = new RdfXmlWriter(nodeRegistry, map);
final OutputStream fileOutputStream = new FileOutputStream(file);
try {
writer.write(graph, fileOutputStream);
} finally {