code: private Pair<Cluster, List<StoreDefinition>> getCurrentClusterState() {
  
          // Retrieve the latest cluster metadata from the existing nodes
          Versioned<Cluster> currentVersionedCluster = adminClient.rebalanceOps.getLatestCluster(Utils.nodeListToNodeIdList(Lists.newArrayList(adminClient.getAdminClientCluster()
                                                                                                                                                          .getNodes())));
          Cluster cluster = currentVersionedCluster.getValue();
          List<StoreDefinition> storeDefs = adminClient.rebalanceOps.getCurrentStoreDefinitions(cluster);
          return new Pair<Cluster, List<StoreDefinition>>(cluster, storeDefs);
      }
docs: Probe the existing cluster to retrieve the current cluster xml and stores
  xml.
  
  @return Pair of Cluster and List<StoreDefinition> from current cluster.