public static Volume checkIfVolumeExistsInDB(String volumeNativeGuid,DbClient dbClient){
  List<Volume> activeVolumes=CustomQueryUtility.getActiveVolumeByNativeGuid(dbClient,volumeNativeGuid);
  Iterator<Volume> volumeItr=activeVolumes.iterator();
  return volumeItr.next();
}

public static Volume checkIfVolumeExistsInDB ( String volumeNativeGuid , DbClient dbClient ) { List < Volume > activeVolumes = CustomQueryUtility . getActiveVolumeByNativeGuid ( dbClient , volumeNativeGuid ) ; Iterator < Volume > volumeItr = activeVolumes . iterator ( ) ; return volumeItr . next ( ) ; }
todo : need to move all these db checks to dbsvc project check volume exists in db
