private static Map<String, Map<String, ReplicaId>> getMountPathToReplicas(StaticClusterManager staticClusterMap,
      DataNodeId dataNodeId) {
    Map<String, Map<String, ReplicaId>> mountPathToReplicas = new HashMap<>();
    for (ReplicaId replica : staticClusterMap.getReplicas(dataNodeId)) {
      Map<String, ReplicaId> replicaStrs = mountPathToReplicas.get(replica.getMountPath());
      if (replicaStrs != null) {
        replicaStrs.put(replica.getPartitionId().toPathString(), replica);
      } else {
        replicaStrs = new HashMap<>();
        replicaStrs.put(replica.getPartitionId().toPathString(), replica);
        mountPathToReplicas.put(replica.getMountPath(), replicaStrs);
      }
    }
    return mountPathToReplicas;
  }
A helper method that returns a map of mountPaths to a map of replicas -> replicaCapacity for a given
{@link DataNodeId}
@param staticClusterMap the static {@link StaticClusterManager}
@param dataNodeId the {@link DataNodeId} of interest.
@return the constructed map.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java