docs: @Deprecated
      public List<InstanceInfo> getInstancesById(String id, boolean includeRemoteRegions) {
          List<InstanceInfo> list = new ArrayList<InstanceInfo>();
  
          for (Iterator<Entry<String, Map<String, Lease<InstanceInfo>>>> iter =
                       registry.entrySet().iterator(); iter.hasNext(); ) {
  
              Map<String, Lease<InstanceInfo>> leaseMap = iter.next().getValue();
              if (leaseMap != null) {
                  Lease<InstanceInfo> lease = leaseMap.get(id);
  
                  if (lease == null || (isLeaseExpirationEnabled() && lease.isExpired())) {
                      continue;
                  }
  
                  if (list == Collections.EMPTY_LIST) {
                      list = new ArrayList<InstanceInfo>();
                  }
                  list.add(decorateInstanceInfo(lease));
              }
          }
          if (list.isEmpty() && includeRemoteRegions) {
              for (RemoteRegionRegistry remoteRegistry : this.regionNameVSRemoteRegistry.values()) {
                  for (Application application : remoteRegistry.getApplications()
                          .getRegisteredApplications()) {
                      InstanceInfo instanceInfo = application.getByInstanceId(id);
                      if (instanceInfo != null) {
                          list.add(instanceInfo);
                          return list;
                      }
                  }
              }
          }
          return list;
      }