public static BlockSnapshot checkSnapShotExistsInDB(String nativeGuid,DbClient dbClient){
  List<BlockSnapshot> activeSnapshots=CustomQueryUtility.getActiveBlockSnapshotByNativeGuid(dbClient,nativeGuid);
  Iterator<BlockSnapshot> snapshotItr=activeSnapshots.iterator();
  return snapshotItr.hasNext() ? snapshotItr.next() : null;
}

public static BlockSnapshot checkSnapShotExistsInDB ( String nativeGuid , DbClient dbClient ) { List < BlockSnapshot > activeSnapshots = CustomQueryUtility . getActiveBlockSnapshotByNativeGuid ( dbClient , nativeGuid ) ; Iterator < BlockSnapshot > snapshotItr = activeSnapshots . iterator ( ) ; return snapshotItr . hasNext ( ) ? snapshotItr . next ( ) : null ; }
check if the given native guid string exists in the database for a blocksnapshot object .
