docs: public static String getRpcUrl(
  			String hostname,
  			int port,
  			String endpointName,
  			HighAvailabilityServicesUtils.AddressResolution addressResolution,
  			AkkaProtocol akkaProtocol) throws UnknownHostException {
  
  		checkNotNull(hostname, "hostname is null");
  		checkNotNull(endpointName, "endpointName is null");
  		checkArgument(port > 0 && port <= 65535, "port must be in [1, 65535]");
  
  		final String protocolPrefix = akkaProtocol == AkkaProtocol.SSL_TCP ? AKKA_SSL_TCP : AKKA_TCP;
  
  		if (addressResolution == AddressResolution.TRY_ADDRESS_RESOLUTION) {
  			// Fail fast if the hostname cannot be resolved
  			//noinspection ResultOfMethodCallIgnored
  			InetAddress.getByName(hostname);
  		}
  
  		final String hostPort = NetUtils.unresolvedHostAndPortToNormalizedString(hostname, port);
  
  		return String.format("%s://flink@%s/user/%s", protocolPrefix, hostPort, endpointName);
  	}