actionSet.add(list2[i]);  ArrayList list = new ArrayList(actionSet); return (Action[]) list.toArray(new Action[actionSet.size()]);
{ Action a = list2[i]; Object name = a.getValue(Action.NAME); actions.put(name != null ? name : "", a); } Action[] augmented = new Action[actions.size()];  int i = 0; for (Iterator it = actions.values().iterator(); it.hasNext(); i++) augmented[i] = (Action) it.next(); return augmented;
  public static final Action[] augmentList(Action[] list1, Action[] list2)  {    HashSet actionSet = new HashSet();    for (int i = 0; i < list1.length; ++i)      actionSet.add(list1[i]);    for (int i = 0; i < list2.length; ++i)      actionSet.add(list2[i]);    ArrayList list = new ArrayList(actionSet);    return (Action[]) list.toArray(new Action[actionSet.size()]);  }