code: public URI toURI() {
  		final String protocol = scheme.getProtocol();
  		try {
  			return new URI(protocol, null, host, port, path, null, null);
  		}
  		catch (URISyntaxException ex) {
  			throw new UrlException(protocol, host, port, path, ex);
  		}
  	}
docs: Create new {@link URI} from URL fields.
  
  @return URI instance.
  @throws IllegalArgumentException If {@code URI} cannot be built because of {@link URISyntaxException}.