private void processInitiators(List<String> initiatorNames,Map<URI,Set<URI>> hostToInitiatorMap){
  for (  String initiatorWWNStr : initiatorNames) {
    Initiator initiator=fetchInitiatorByName(initiatorWWNStr);
    if (null != initiator) {
      Set<URI> initiators=hostToInitiatorMap.get(initiator.getHost());
      if (initiators == null) {
        initiators=new HashSet<URI>();
        hostToInitiatorMap.put(initiator.getHost(),initiators);
      }
      initiators.add(initiator.getId());
    }
  }
}

private void processInitiators ( List < String > initiatorNames , Map < URI , Set < URI > > hostToInitiatorMap ) { for ( String initiatorWWNStr : initiatorNames ) { Initiator initiator = fetchInitiatorByName ( initiatorWWNStr ) ; if ( null != initiator ) { Set < URI > initiators = hostToInitiatorMap . get ( initiator . getHost ( ) ) ; if ( initiators == null ) { initiators = new HashSet < URI > ( ) ; hostToInitiatorMap . put ( initiator . getHost ( ) , initiators ) ; } initiators . add ( initiator . getId ( ) ) ; } } }
process the initiators passed in to form a host = > initiators data structure .
