protected BasicDiagnostic diagnostics;
public BPMN2EditingDomainListener(BPMN2Editor bpmn2Editor) {
super();
this.bpmn2Editor = bpmn2Editor;
TransactionalCommandStack stack = (TransactionalCommandStack) bpmn2Editor.getEditingDomain().getCommandStack();
stack.setExceptionHandler(this);
}