public static String matchClusterCode(String clusterName){
  if (clusterName == null) {
    return null;
  }
  for (  ClusterInfo cluster : CLUSTER_LIST) {
    if (clusterName.contains(cluster.getClusterCode())) {
      return cluster.getClusterCode();
    }
  }
  for (  ClusterInfo cluster : CLUSTER_LIST) {
    if (clusterName.contains(cluster.getClusterShortName())) {
      return cluster.getClusterCode();
    }
  }
  return clusterName;
}

public static String matchClusterCode ( String clusterName ) { if ( clusterName == null ) { return null ; } for ( ClusterInfo cluster : CLUSTER_LIST ) { if ( clusterName . contains ( cluster . getClusterCode ( ) ) ) { return cluster . getClusterCode ( ) ; } } for ( ClusterInfo cluster : CLUSTER_LIST ) { if ( clusterName . contains ( cluster . getClusterShortName ( ) ) ) { return cluster . getClusterCode ( ) ; } } return clusterName ; }
match the clustername to the list of cluster info , return the matching clustercode
