return cc;
CompoundCommand r = new CompoundCommand();
r.setLabel(cc.getLabel());
SXECompoundCommand sxeCommand = new SXECompoundCommand();
sxeCommand.setLabel(cc.getLabel());
for (Object o : cc.getCommands()) {
if (o instanceof SXECommand)
sxeCommand.add((SXECommand) o);
else
r.add((Command) o);
}
if (r.getCommands().size() == 0)