if (s.port != info.port || ! s.server.equals(host.name)) { if (debug > 1) System.out.println("JmDNS.makeServiceNameUnique srv collision:"+a+" s.server="+s.server+" "+host.name+" equals:"+(s.server.equals(host.name)));
if (s.port != info.port || ! s.server.equals(localHost.getName())) { logger.finer("makeServiceNameUnique() JmDNS.makeServiceNameUnique srv collision:"+a+" s.server="+s.server+" "+localHost.getName()+" equals:"+(s.server.equals(localHost.getName())));
    private boolean makeServiceNameUnique(ServiceInfo info) {        String originalQualifiedName = info.getQualifiedName();        long now = System.currentTimeMillis();                boolean collision;        do {            collision = false;                        // Check for collision in cache            for (DNSCache.CacheNode j = cache.find(info.getQualifiedName().toLowerCase()); j != null; j = j.next()) {                DNSRecord a = (DNSRecord) j.getValue();                if ((a.type == DNSConstants.TYPE_SRV) && !a.isExpired(now)) {                    DNSRecord.Service s = (DNSRecord.Service) a;                    if (s.port != info.port || ! s.server.equals(host.name)) {                        if (debug > 1) System.out.println("JmDNS.makeServiceNameUnique srv collision:"+a+" s.server="+s.server+" "+host.name+" equals:"+(s.server.equals(host.name)));                        info.setName(incrementName(info.getName()));                        collision = true;                        break;                    }                }            }                        // Check for collision with other service infos published by JmDNS            Object selfService = services.get(info.getQualifiedName().toLowerCase());            if (selfService != null && selfService != info) {                info.setName(incrementName(info.getName()));                collision = true;            }        } while (collision);                return ! (originalQualifiedName.equals(info.getQualifiedName()));    }