*/
protected Command getAddCommand(GroupRequest request) {
CompoundCommand cmd = new CompoundCommand();
for (int i = 0; i < request.getEditParts().size(); i++) {
if (getHost().getModel() instanceof ITransitionableFrom) {
AddAndAssignSourceCommand add = new AddAndAssignSourceCommand();
add.setParent((IWebflowState) getHost().getParent().getModel());
add.setSource((ITransitionableFrom) getHost().getModel());
add.setChild(((ITransitionableTo) ((EditPart) request
.getEditParts().get(i)).getModel()));
cmd.add(add);
}
}
return cmd;