for(Iterator iter = listeners.iterator(); iter.hasNext();) {
List l = new ArrayList(); synchronized (listeners) { l.addAll(listeners); } for(Iterator iter = l.iterator(); iter.hasNext();) {
  private void fireListenersForNewAlert(ThreatAlert ta) {    for(Iterator iter = listeners.iterator(); iter.hasNext();) {      ThreatAlertListener listener = (ThreatAlertListener)iter.next();      listener.newAlert(ta);    }  }