question: 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 ; }
target:  Check if Pool exists in DB.