for (Enumeration e = typeListeners.elements() ; e.hasMoreElements() ;) { ((ServiceTypeListener)e.nextElement()).serviceTypeAdded(new ServiceEvent(this, type, null, null));
for (Iterator iterator = typeListeners.iterator() ; iterator.hasNext() ;) { ((ServiceTypeListener)iterator.next()).serviceTypeAdded(new ServiceEvent(this, type, null, null));
    public synchronized void registerServiceType(String type) {        String name = type.toLowerCase();        if (serviceTypes.get(name) == null) {            if ((type.indexOf("._mdns._udp.") < 0) && !type.endsWith(".in-addr.arpa.")) {                serviceTypes.put(name, type);                for (Enumeration e = typeListeners.elements() ; e.hasMoreElements() ;) {                    ((ServiceTypeListener)e.nextElement()).serviceTypeAdded(new ServiceEvent(this, type, null, null));                }            }        }    }