String host1 = url1.getHost(); String host2 = url2.getHost();  if (host1 != null && host2 != null) return host1.equalsIgnoreCase(host2);  return host1 == null && host2 == null;
	protected boolean hostsEqual(URL url1, URL url2)		throws UnknownHostException {		InetAddress addr1 = InetAddress.getByName(url1.getHost());		InetAddress addr2 = InetAddress.getByName(url2.getHost());		return addr1.equals(addr2);	}