protected static Log log = LogFactory.getLog(RestHome.class);
public static String getCluster() {
String cluster=System.getProperty("CLUSTER", "");
if (cluster.compareTo("")==0) {
ClusterConfig cc=new ClusterConfig();
Iterator<String> keys = cc.getClusters();
if (keys.hasNext()) {
cluster=keys.next();
}
System.setProperty("CLUSTER",cluster);
}