code: void resolveUrl() throws IOException, StorageException, KeyManagementException, NoSuchAlgorithmException{
  		String tempUrl;
  		if(context.isCluster){
  			if(this.context.lastBalancerResponse!=null){
  				tempUrl = this.context.lastBalancerResponse;				
  			} else {
  				//System.out.println("[-] Balancer resolve! " + this.context);
  				String urlString = context.url + "?appkey=" + context.applicationKey;
  				URL url = new URL(urlString);
  				String balancerResponse = urlString.startsWith("https:") ? secureBalancerRequest(url) : unsecureBalancerRequest(url);
  				if(balancerResponse == null){
  					throw new StorageException("Cannot get response from balancer!");
  				}
  				JSONObject obj = (JSONObject) JSONValue.parse(balancerResponse);
  				tempUrl = (String)obj.get("url");
  				this.context.lastBalancerResponse = tempUrl;
  			}
  		} else {
  			tempUrl = context.url;
  		}
  		//tempUrl = "https://storage-ssl-prd-useast1-s0002.realtime.co:443/";
  		//this.requestUrl += this.requestUrl.substring(this.requestUrl.length() - 1).equals("/") ? this.type.toString() : "/"+this.type.toString();
  		tempUrl += tempUrl.substring(tempUrl.length() - 1).equals("/") ? this.type.toString() : "/"+this.type.toString();
  		//path += path.substring(path.length(), 1).equals("/") ? this.type.toString() : "/"+this.type.toString();
  		this.requestUrl = new URL(tempUrl);
  		//System.out.println(String.format("Rest url: %s",this.requestUrl));
  	}
docs: will put the server url with rest path to this.requestUrl