public NamedCluster clone() {
   NamedCluster nc = new NamedCluster();
   nc.replaceMeta(this);
   return nc;
 }
 @Override
 public int compare(NamedCluster c1, NamedCluster c2) {
   return c1.getName().compareToIgnoreCase(c2.getName());
 }
 public void replaceMeta(NamedCluster nc) {
   this.setName(nc.getName());
   this.setHdfsHost(nc.getHdfsHost());
   this.setHdfsPort(nc.getHdfsPort());
   this.setHdfsUsername(nc.getHdfsUsername());
   this.setHdfsPassword(nc.getHdfsPassword());
   this.setJobTrackerHost(nc.getJobTrackerHost());
   this.setJobTrackerPort(nc.getJobTrackerPort());
   this.setZooKeeperHost(nc.getZooKeeperHost());
   this.setZooKeeperPort(nc.getZooKeeperPort());
   this.setOozieUrl(nc.getOozieUrl());
   this.setMapr(nc.isMapr());
   this.lastModifiedDate = System.currentTimeMillis();
 }