protected Command getOrphanChildrenCommand(GroupRequest request) {
List parts = request.getEditParts();
CompoundCommand result = new CompoundCommand();
for (int i = 0; i < parts.size(); i++) {
Activity child = (Activity) ((EditPart) parts.get(i)).getModel();
OrphanChildCommand orphan = new OrphanChildCommand(child.getDiagram().getTextEditor());
orphan.setChild(child);
orphan.setParent((StructuredActivity) getHost().getModel());
result.add(orphan);
}
return result.unwrap();
}