protected void writeModel(OutputStream os, boolean includeGraphics) throws IOException {
OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8");
try {
RuleFlowProcess process = getRuleFlowModel().getRuleFlowProcess();
XmlBPMNProcessDumper dumper = XmlBPMNProcessDumper.INSTANCE;
String out = dumper.dump(process, XmlBPMNProcessDumper.META_DATA_USING_DI);
writer.write(out);
} catch (Throwable t) {
DroolsEclipsePlugin.log(t);
IStatus status = new Status(
IStatus.ERROR,