public Command getOrphanChildrenCommand(GroupRequest request) {
List parts = request.getEditParts();
CompoundCommand result = new CompoundCommand(
MusicMessages.MusicContainerEditPolicy_OrphanCommandLabelText);
for (int i = 0; i < parts.size(); i++) {
OrphanChildCommand orphan = new OrphanChildCommand();
orphan.setChild((BasicElement) ((EditPart) parts.get(i)).getModel());
orphan.setParent((MusicContainerForm) getHost().getModel());
orphan.setLabel(MusicMessages.MusicElementEditPolicy_OrphanCommandLabelText);
result.add(orphan);
}
return result.unwrap();
}