static String getResourceNameOfPartition(HelixAdmin helixAdmin, String clusterName, String partitionName) {
    String result = null;
    for (String resourceName : helixAdmin.getResourcesInCluster(clusterName)) {
      IdealState idealState = helixAdmin.getResourceIdealState(clusterName, resourceName);
      if (idealState.getPartitionSet().contains(partitionName)) {
        result = resourceName;
        break;
      }
    }
    return result;
  }
Get resource name associated with given partition.
@param helixAdmin the {@link HelixAdmin} to access resources in cluster
@param clusterName the name of cluster in which the partition resides
@param partitionName name of partition
@return resource name associated with given partition. {@code null} if not found.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java