code: public Socket getSocket(URI uri, boolean wantTLS, SecurityDomain securityDomain) throws Exception 
  	{
  		if (uri == null) {
  			throw new URISyntaxException("", "The URI specified cannot be null");
  		}
  
  		String host = uri.getHost();
  		int port = uri.getPort();
  		
  		if (!"".equals(host) && port > 0) {
  			return getSocket(host,port,wantTLS,securityDomain);
  		} else {
  			throw new URISyntaxException(uri.toString(), "Invalid host or port specified.  Host cannot be empty and port must be defined and greater than zero");
  		}
  	}
docs: /* (non-Javadoc)
  @see org.openhealthtools.ihe.atna.nodeauth.SocketHandler#getSocket(java.net.URI, boolean, org.openhealthtools.ihe.atna.nodeauth.SecurityDomain)