private void persistVolumeNativeID(DbClient dbClient,URI volumeId,String nativeID,Calendar creationTime) throws IOException {
  Volume volume=dbClient.queryObject(Volume.class,volumeId);
  volume.setCreationTime(creationTime);
  volume.setNativeId(nativeID);
  volume.setNativeGuid(NativeGUIDGenerator.generateNativeGuid(dbClient,volume));
  dbClient.updateObject(volume);
}

private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUIDGenerator . generateNativeGuid ( dbClient , volume ) ) ; dbClient . updateObject ( volume ) ; }
this method saves the native id info and creation time for the volume object . the native id is the key identifier for the volume instance on the smi - s side . we need to immediately persist it , so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it .
