public StoragePool selectPool(List<StoragePool> poolList){
  if (poolList == null || poolList.isEmpty()) {
    return null;
  }
  _portMetricsProcessor.computeStoragePoolsAvgPortMetrics(poolList);
  Collections.sort(poolList,_storagePoolComparator);
  return poolList.get(0);
}

public StoragePool selectPool ( List < StoragePool > poolList ) { if ( poolList == null || poolList . isEmpty ( ) ) { return null ; } _portMetricsProcessor . computeStoragePoolsAvgPortMetrics ( poolList ) ; Collections . sort ( poolList , _storagePoolComparator ) ; return poolList . get ( 0 ) ; }
select one storage pool out a list of candidates . use static and dynamic loads , capacity etc criteria to narrow the selection .
