private String formatUrl(String path){
  String urlPath=path;
  if (!path.startsWith("/")) {
    urlPath=String.format("/%s",path);
  }
  return String.format("%s%s",this.baseUrl,urlPath);
}

private String formatUrl ( String path ) { String urlPath = path ; if ( ! path . startsWith ( "/" ) ) { urlPath = String . format ( "/%s" , path ) ; } return String . format ( "%s%s" , this . baseUrl , urlPath ) ; }
format the rest endpoint url .
