ActionMacro () { ActionMacro copy = new ActionMacro(myName); for (int i = 0; i < myActions.size(); i++) { ActionDescriptor action = myActions.get(i); copy.myActions.add(action.clone()); } return copy; }