protected StoragePool checkPoolExistsInDB(String nativeGuid) throws IOException {
  StoragePool pool=null;
  List<StoragePool> poolInDB=CustomQueryUtility.getActiveStoragePoolByNativeGuid(_dbClient,nativeGuid);
  if (poolInDB != null && !poolInDB.isEmpty()) {
    pool=poolInDB.get(0);
  }
  return pool;
}

protected StoragePool checkPoolExistsInDB ( String nativeGuid ) throws IOException { StoragePool pool = null ; List < StoragePool > poolInDB = CustomQueryUtility . getActiveStoragePoolByNativeGuid ( _dbClient , nativeGuid ) ; if ( poolInDB != null && ! poolInDB . isEmpty ( ) ) { pool = poolInDB . get ( 0 ) ; } return pool ; }
check if pool exists in db .
