public static Map<String,Integer> extractWwnToHluMap(UnManagedExportMask unManagedExportMask,DbClient dbClient){
  Map<String,Integer> wwnToHluMap=new HashMap<String,Integer>();
  Iterator<UnManagedVolume> unManagedVolumes=dbClient.queryIterativeObjects(UnManagedVolume.class,Collections2.transform(unManagedExportMask.getUnmanagedVolumeUris(),CommonTransformerFunctions.FCTN_STRING_TO_URI));
  while (unManagedVolumes.hasNext()) {
    UnManagedVolume vol=unManagedVolumes.next();
    String wwn=vol.getWwn();
    if (wwn != null) {
      wwnToHluMap.put(wwn,findHlu(vol,unManagedExportMask.getMaskName()));
    }
  }
  _logger.info("wwn to hlu map for {} is " + wwnToHluMap,unManagedExportMask.getMaskName());
  return wwnToHluMap;
}

public static Map < String , Integer > extractWwnToHluMap ( UnManagedExportMask unManagedExportMask , DbClient dbClient ) { Map < String , Integer > wwnToHluMap = new HashMap < String , Integer > ( ) ; Iterator < UnManagedVolume > unManagedVolumes = dbClient . queryIterativeObjects ( UnManagedVolume . class , Collections2 . transform ( unManagedExportMask . getUnmanagedVolumeUris ( ) , CommonTransformerFunctions . FCTN_STRING_TO_URI ) ) ; while ( unManagedVolumes . hasNext ( ) ) { UnManagedVolume vol = unManagedVolumes . next ( ) ; String wwn = vol . getWwn ( ) ; if ( wwn != null ) { wwnToHluMap . put ( wwn , findHlu ( vol , unManagedExportMask . getMaskName ( ) ) ) ; } } _logger . info ( "wwn to hlu map for {} is " + wwnToHluMap , unManagedExportMask . getMaskName ( ) ) ; return wwnToHluMap ; }
extracts a map of wwns to hlus for unmanagedvolumes in a given unmanagedexportmask .
