ServiceInfo(String type, String name) { if (!type.endsWith(".")) { throw new IllegalArgumentException("type must be fully qualified DNS name ending in '.': " + type); }  this.type = type; this.name = name;
public ServiceInfo(String type, String name, int port, String text) { this(type, name, port, 0, 0, text);
    ServiceInfo(String type, String name) {        if (!type.endsWith(".")) {            throw new IllegalArgumentException("type must be fully qualified DNS name ending in '.': " + type);        }                this.type = type;        this.name = name;    }