question: protected StoragePort checkPortExistsInDB ( String nativeGuid ) throws IOException { StoragePort port = null ; List < StoragePort > portInDB = CustomQueryUtility . getActiveStoragePortByNativeGuid ( _dbClient , nativeGuid ) ; if ( portInDB != null && ! portInDB . isEmpty ( ) ) { port = portInDB . get ( 0 ) ; } return port ; }
target:  Check if Port exists in DB.