for (Iterator i=list.iterator(); i.hasNext(); ) { ((ServiceListener) i.next()).serviceResolved(event);
final ArrayList listCopy = new ArrayList(list); for (Iterator iterator=listCopy.iterator(); iterator.hasNext(); ) { ((ServiceListener) iterator.next()).serviceResolved(event);
    void handleServiceResolved(ServiceInfo info) {        LinkedList list = (LinkedList) serviceListeners.get(info.type.toLowerCase());        if (list != null) {            ServiceEvent event = new ServiceEvent(this,info.type,info.getName(),info);            for (Iterator i=list.iterator(); i.hasNext(); ) {                ((ServiceListener) i.next()).serviceResolved(event);            }        }    }