for (Iterator i = listeners.iterator(); i.hasNext();) {
final List eventListeners = new ArrayList(listeners); for (Iterator i = eventListeners.iterator(); i.hasNext();) {
    public void dispatchEvent(PhoneEvent event) {        for (Iterator i = listeners.iterator(); i.hasNext();) {            PhoneEventListener listener = (PhoneEventListener) i.next();            listener.handle(event);        }    }