public static BlockSnapshot checkBlockSnapshotExistsInDB(DbClient dbClient,String nativeGuid) throws IOException {
  List<BlockSnapshot> snapshots=CustomQueryUtility.getActiveBlockSnapshotByNativeGuid(dbClient,nativeGuid);
  Iterator<BlockSnapshot> snapshotItr=snapshots.iterator();
  if (snapshotItr.hasNext()) {
    return snapshotItr.next();
  }
  return null;
}

public static BlockSnapshot checkBlockSnapshotExistsInDB ( DbClient dbClient , String nativeGuid ) throws IOException { List < BlockSnapshot > snapshots = CustomQueryUtility . getActiveBlockSnapshotByNativeGuid ( dbClient , nativeGuid ) ; Iterator < BlockSnapshot > snapshotItr = snapshots . iterator ( ) ; if ( snapshotItr . hasNext ( ) ) { return snapshotItr . next ( ) ; } return null ; }
check block snapshot exists in db
