// Turn the model's vector into a collection
ArrayList items = new ArrayList();
for (Enumeration e = rightModel.elements(); e.hasMoreElements(); )
items.add(e.nextElement());
GroupEditCommand cmd = new GroupEditCommand(report, designer, items);
cmd.perform();
commands.add(cmd);
}