private void updateMatchingMasksForHost(Set<String> matchedHostInitiators,ExportMask exportMask,Map<String,Set<URI>> matchingMasks){
  if (null != matchedHostInitiators && !matchedHostInitiators.isEmpty()) {
    for (    String initiatorName : matchedHostInitiators) {
      Set<URI> maskURIs=matchingMasks.get(initiatorName);
      if (maskURIs == null) {
        maskURIs=new HashSet<URI>();
        matchingMasks.put(initiatorName,maskURIs);
      }
      maskURIs.add(exportMask.getId());
    }
  }
}

private void updateMatchingMasksForHost ( Set < String > matchedHostInitiators , ExportMask exportMask , Map < String , Set < URI > > matchingMasks ) { if ( null != matchedHostInitiators && ! matchedHostInitiators . isEmpty ( ) ) { for ( String initiatorName : matchedHostInitiators ) { Set < URI > maskURIs = matchingMasks . get ( initiatorName ) ; if ( maskURIs == null ) { maskURIs = new HashSet < URI > ( ) ; matchingMasks . put ( initiatorName , maskURIs ) ; } maskURIs . add ( exportMask . getId ( ) ) ; } } }
updates matchingmasks and return to the orchestrator to act on on the matchingmasks . orchestrator will decide whether to add new volumes / initiators based on this collection .
