question: private void createSnapshot ( BlockSnapshot snapshot , Snap unitySnap , StorageSystem storage , DbClient dbClient ) { snapshot . setNativeId ( unitySnap . getId ( ) ) ; snapshot . setNativeGuid ( NativeGUIDGenerator . generateNativeGuid ( storage , snapshot ) ) ; snapshot . setDeviceLabel ( unitySnap . getName ( ) ) ; snapshot . setIsSyncActive ( true ) ; snapshot . setInactive ( false ) ; snapshot . setCreationTime ( Calendar . getInstance ( ) ) ; snapshot . setWWN ( unitySnap . getAttachedWWN ( ) ) ; snapshot . setAllocatedCapacity ( unitySnap . getSize ( ) ) ; snapshot . setProvisionedCapacity ( unitySnap . getSize ( ) ) ; dbClient . createObject ( snapshot ) ; }
target:  Create the BlockSnapshot in DB