// adding out of order to check we add the otherwise first before the non-when/otherwise
choice.addTargetNode(ep4);
When when = new When();
choice.addTargetNode(when);
when.addTargetNode(ep2);
Otherwise otherwise = new Otherwise();
choice.addTargetNode(otherwise);
otherwise.addTargetNode(ep3);