code: private String getCanonicalAddress(HeaderAddress header) {
  		String addr = header.getAddress().getURI().toString();
  		int index = addr.indexOf(':');
  		index = addr.indexOf(':', index + 1);
  		if (index != -1) {
  			// Get rid of the port
  			addr = addr.substring(0, index);
  		}
  		return addr;
  	}
docs: util methods