l.addAll(prior);
  public String[] agentsOnNode(String nodeName) {    synchronized (statusMap) {      List l = new ArrayList();      for (Iterator it = statusMap.values().iterator(); it.hasNext();) {        StatusEntry se = (StatusEntry)it.next();        if (se != null && nodeName.equals(se.currentLocation) && se.type == AGENT) {          l.add(se.name);        }      }      l.addAll(prior);      return (String[])l.toArray(new String[0]);    }  }