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;
}

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 ; }
check if port exists in db .
