code: @Deprecated
      public Applications getApplications(boolean includeRemoteRegion) {
          GET_ALL_CACHE_MISS.increment();
          Applications apps = new Applications();
          apps.setVersion(1L);
          for (Entry<String, Map<String, Lease<InstanceInfo>>> entry : registry.entrySet()) {
              Application app = null;
  
              if (entry.getValue() != null) {
                  for (Entry<String, Lease<InstanceInfo>> stringLeaseEntry : entry.getValue().entrySet()) {
  
                      Lease<InstanceInfo> lease = stringLeaseEntry.getValue();
  
                      if (app == null) {
                          app = new Application(lease.getHolder().getAppName());
                      }
  
                      app.addInstance(decorateInstanceInfo(lease));
                  }
              }
              if (app != null) {
                  apps.addApplication(app);
              }
          }
          if (includeRemoteRegion) {
              for (RemoteRegionRegistry remoteRegistry : this.regionNameVSRemoteRegistry.values()) {
                  Applications applications = remoteRegistry.getApplications();
                  for (Application application : applications
                          .getRegisteredApplications()) {
                      Application appInLocalRegistry = apps
                              .getRegisteredApplications(application.getName());
                      if (appInLocalRegistry == null) {
                          apps.addApplication(application);
                      }
                  }
              }
          }
          apps.setAppsHashCode(apps.getReconcileHashCode());
          return apps;
      }
docs: Get the registry information about all {@link Applications}.
  
  @param includeRemoteRegion true, if we need to include applications from remote regions
  as indicated by the region {@link URL} by this property
  {@link EurekaServerConfig#getRemoteRegionUrls()}, false otherwise
  @return applications
  
  @deprecated Use {@link #getApplicationsFromMultipleRegions(String[])} instead. This method has a flawed behavior
  of transparently falling back to a remote region if no instances for an app is available locally. The new
  behavior is to explicitly specify if you need a remote region.