if (!ret.getLeft()) {
//User cancelled
return EMPTY;
}
BooleanLiteral b =
LiteralsFactory.eINSTANCE.createBooleanLiteral();
b.setValue(ret.getRight());
LocalVariableStatement lvs = Utility.wrapLiteral(b,
Utility.getModel(getDiagram()));
Utility.addAsLastNonSubmitStatement(lvs,