for (Enumeration e = serviceTypes.elements() ; e.hasMoreElements() ;) { listener.serviceTypeAdded(new ServiceEvent(this, (String)e.nextElement(), null, null));
for (Iterator iterator = serviceTypes.values().iterator() ; iterator.hasNext() ;) { listener.serviceTypeAdded(new ServiceEvent(this, (String)iterator.next(), null, null));
    public void addServiceTypeListener(ServiceTypeListener listener) throws IOException {        removeServiceTypeListener(listener);        typeListeners.addElement(listener);                // report cached service types        for (Enumeration e = serviceTypes.elements() ; e.hasMoreElements() ;) {            listener.serviceTypeAdded(new ServiceEvent(this, (String)e.nextElement(), null, null));        }                new TypeResolver().start();    }