public Datacenter findDatacenter(String datacenterName) {
    for (Datacenter datacenter : datacenters) {
      if (datacenter.getName().compareToIgnoreCase(datacenterName) == 0) {
        return datacenter;
      }
    }
    return null;
  }
Finds Datacenter by name

@param datacenterName name of datacenter to be found
@return Datacenter or null if not found.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HardwareLayout.java