    newnode.containingGroup = group;

        var enddata = { category: 'EndIf' };
        diagram.model.addNodeData(enddata);
        var endnode = diagram.findNodeForData(enddata);
        endnode.containingGroup = group;
        endnode.location = e.documentPoint;

        var truedata = { from: newnode.key, to: endnode.key, text: 'yes' };
        diagram.model.addLinkData(truedata);
        var truelink = diagram.findLinkForData(truedata);
        var falsedata = { from: newnode.key, to: endnode.key, te