static WeightedHostAddress from(HostAddress address) {
            if (address instanceof WeightedHostAddress) {
                return (WeightedHostAddress) address;
            }

            return new WeightedHostAddress(address.getHost(), address.getPort(), address.isDirectTLS(), 0, 0);
        }
@deprecated Replaced by {@link SrvRecord#prioritize(SrvRecord[])}
xmppserver/src/main/java/org/jivesoftware/openfire/net/DNSUtil.java