docs: @Override
      public InstanceInfo getInstanceByAppAndId(String appName, String id, boolean includeRemoteRegions) {
          Map<String, Lease<InstanceInfo>> leaseMap = registry.get(appName);
          Lease<InstanceInfo> lease = null;
          if (leaseMap != null) {
              lease = leaseMap.get(id);
          }
          if (lease != null
                  && (!isLeaseExpirationEnabled() || !lease.isExpired())) {
              return decorateInstanceInfo(lease);
          } else if (includeRemoteRegions) {
              for (RemoteRegionRegistry remoteRegistry : this.regionNameVSRemoteRegistry.values()) {
                  Application application = remoteRegistry.getApplication(appName);
                  if (application != null) {
                      return application.getByInstanceId(id);
                  }
              }
          }
          return null;
      }