private StoragePort chooseCandidate(Set<StoragePort> candidates,Map<StoragePort,Long> usageMap){
  StoragePort chosenPort=null;
  long minUsage=Long.MAX_VALUE;
  for (  StoragePort sp : candidates) {
    Long usage=usageMap.get(sp);
    _log.debug(String.format("Port %s usage %d",sp.getPortName(),usage));
    if (usage < minUsage) {
      minUsage=usage;
      chosenPort=sp;
    }
  }
  return chosenPort;
}

private StoragePort chooseCandidate ( Set < StoragePort > candidates , Map < StoragePort , Long > usageMap ) { StoragePort chosenPort = null ; long minUsage = Long . MAX_VALUE ; for ( StoragePort sp : candidates ) { Long usage = usageMap . get ( sp ) ; _log . debug ( String . format ( "Port %s usage %d" , sp . getPortName ( ) , usage ) ) ; if ( usage < minUsage ) { minUsage = usage ; chosenPort = sp ; } } return chosenPort ; }
choose one of the ports with minimum usage from the candidate list .
