docs: function resolveUrl(path, options) {
      if (options === void 0) { options = {}; }
      var serverUrl = resolveServer(path, options);
      if (!serverUrl) {
          return path;
      }
      if (path.charAt(0) !== '/') {
          // construct full application url
          var tenantOrga = options.tenantOrga;
          if (!tenantOrga) {
              // following extracts the tenantOrga set on the specific server
              var serverObj = server.Server.getInstance(serverUrl);
              tenantOrga = serverObj.applyOptions({
                  serverUrl: serverUrl
              }).tenantOrga;
              if (!tenantOrga) {
                  tenantOrga = init.initOptions.tenantOrga;
                  if (!tenantOrga) {
                      var organization = serverObj.organization;
                      if (organization) {
                          tenantOrga = organization.uniqueName;
                      }
                  }
              }
          }
          var application = options.application || init.initOptions.application;
          serverUrl = url.resolve(serverUrl, '/' + tenantOrga + '/' + application + '/');
      }
      return url.resolve(serverUrl, path);
  }