private String generateZonesetCloneName(String zonesetToClone){
  try {
    Thread.sleep(1000);
  }
 catch (  InterruptedException ex) {
    _log.warn(ex.getLocalizedMessage());
  }
  Calendar cal=Calendar.getInstance();
  DateFormat dateFormat=new SimpleDateFormat("MMddyy-HHmmss");
  String dateString=dateFormat.format(cal.getTime());
  String longName=MDSDialogProperties.getString("MDSDialog.zonesetCloneLongName.cmd");
  if (!longName.contains("!MDSDialog.zonesetCloneLongName.cmd!")) {
    return longName;
  }
  return "ViPR-" + zonesetToClone + "-"+ dateString;
}

private String generateZonesetCloneName ( String zonesetToClone ) { try { Thread . sleep ( 1000 ) ; } catch ( InterruptedException ex ) { _log . warn ( ex . getLocalizedMessage ( ) ) ; } Calendar cal = Calendar . getInstance ( ) ; DateFormat dateFormat = new SimpleDateFormat ( "MMddyy-HHmmss" ) ; String dateString = dateFormat . format ( cal . getTime ( ) ) ; String longName = MDSDialogProperties . getString ( "MDSDialog.zonesetCloneLongName.cmd" ) ; if ( ! longName . contains ( "!MDSDialog.zonesetCloneLongName.cmd!" ) ) { return longName ; } return "ViPR-" + zonesetToClone + "-" + dateString ; }
generate a unique name for the zoneset clone . the format of the zoneset clone name is " vipr - < existing_zone > - mmddyy - hhmmss " mmddyy and hhmmss refer to the date and the time - stamp that will help identify when the clone was taken .
