return errorStatus("Could not load target model", e);
}
// now export as DOT
monitor.subTask("Exporting model");
EmfToDot exporter = new EmfToDot();
String output = exporter.toDot(model, targetModel);
monitor.worked(80);
// and save to file
target.create(new ByteArrayInputStream(output.getBytes("UTF-8")), true, new SubProgressMonitor(monitor, 10));