public void updateGroupCloneInfo(VolumeConsistencyGroup consistencyGroup,List<VolumeClone> clones){
  String cloneTimestamp=Long.toString(System.currentTimeMillis());
  for (  VolumeClone clone : clones) {
    clone.setNativeId("clone-" + clone.getParentId() + clone.getDisplayName());
    clone.setWwn(String.format("%s%s",clone.getStorageSystemId(),clone.getNativeId()));
    clone.setReplicationState(VolumeClone.ReplicationState.SYNCHRONIZED);
    clone.setProvisionedCapacity(clone.getRequestedCapacity());
    clone.setAllocatedCapacity(clone.getRequestedCapacity());
    clone.setDeviceLabel(clone.getNativeId());
    clone.setConsistencyGroup(consistencyGroup.getNativeId() + "_clone-" + cloneTimestamp);
  }
}

public void updateGroupCloneInfo ( VolumeConsistencyGroup consistencyGroup , List < VolumeClone > clones ) { String cloneTimestamp = Long . toString ( System . currentTimeMillis ( ) ) ; for ( VolumeClone clone : clones ) { clone . setNativeId ( "clone-" + clone . getParentId ( ) + clone . getDisplayName ( ) ) ; clone . setWwn ( String . format ( "%s%s" , clone . getStorageSystemId ( ) , clone . getNativeId ( ) ) ) ; clone . setReplicationState ( VolumeClone . ReplicationState . SYNCHRONIZED ) ; clone . setProvisionedCapacity ( clone . getRequestedCapacity ( ) ) ; clone . setAllocatedCapacity ( clone . getRequestedCapacity ( ) ) ; clone . setDeviceLabel ( clone . getNativeId ( ) ) ; clone . setConsistencyGroup ( consistencyGroup . getNativeId ( ) + "_clone-" + cloneTimestamp ) ; } }
update the clone information after successfully being created .
