public static String getPartitionClass(Account account, Container container, String defaultPartitionClass) {
    String partitionClass = defaultPartitionClass;
    if (account != null) {
      if (container != null && !Utils.isNullOrEmpty(container.getReplicationPolicy())) {
        partitionClass = container.getReplicationPolicy();
      }
    }
    return partitionClass;
  }
Return the partition class for the specified {@link Account} and {@link Container}.
If the partition class for the Account and Container is not specified or cannot be determined, then return the
specified defaultPartitionClass.
@param account the {@link Account} object.
@param container the {@link Container} object.
@param defaultPartitionClass the default partition class.
@return the partition class as required by the parameters.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java