code: public String formatKey(URI uri) throws URISyntaxException
  	{
  		if (uri == null) {
  			throw new URISyntaxException("","URI specified is null");
  		}
  		return formatKey(uri.getHost(), uri.getPort());
  	}
docs: Converts a well-formed URI containing a hostname and port into
  string which allows for lookups in the Security Domain table
  @param uri URI to convert
  @return A string with "host:port" concatenated
  @throws URISyntaxException