question: protected Map < URI , Boolean > flagInitiatorsThatArePartOfAFullList ( ExportGroup exportGroup , List < URI > initiatorURIs ) { Map < URI , Boolean > initiatorFlagMap = new HashMap < URI , Boolean > ( ) ; if ( exportGroup . forCluster ( ) || exportGroup . forHost ( ) ) { Map < String , List < URI > > computeResourceMapForRequest = mapInitiatorsToComputeResource ( exportGroup , initiatorURIs ) ; Collection < URI > egInitiators = Collections2 . transform ( exportGroup . getInitiators ( ) , CommonTransformerFunctions . FCTN_STRING_TO_URI ) ; Map < String , List < URI > > computeResourcesMapForExport = mapInitiatorsToComputeResource ( exportGroup , egInitiators ) ; for ( Map . Entry < String , List < URI > > computeResource : computeResourcesMapForExport . entrySet ( ) ) { List < URI > initiatorsForComputeResource = computeResource . getValue ( ) ; List < URI > initiatorsInRequest = computeResourceMapForRequest . get ( computeResource . getKey ( ) ) ; if ( initiatorsInRequest != null ) { initiatorsForComputeResource . removeAll ( initiatorsInRequest ) ; Boolean isFullList = ( initiatorsForComputeResource . isEmpty ( ) ) ; for ( URI uri : initiatorsInRequest ) { initiatorFlagMap . put ( uri , isFullList ) ; } } } } for ( URI uri : initiatorURIs ) { if ( ! initiatorFlagMap . containsKey ( uri ) ) { initiatorFlagMap . put ( uri , Boolean . FALSE ) ; } } return initiatorFlagMap ; }
target:  Function will examine the ExportGroup's initiators and the initiatorURIs list. A mapping of initiator URI to a Boolean flag will be returned. If the flag is == Boolean.TRUE, then it implies that the initiator is part of a full list of initiators for a compute resource. Otherwise, it will be == Boolean.FALSE. Example: Say exportGroup points to 2 hosts, each having 2 initiators for a total of 4 initiators: {H1I1, H1I2, H2I1, H2I2} If the call is flagInitiatorsThatArePartOfAFullList(exportGroup, {H1I1, H1I2, H2I1}) Then the resultant mapping will be: {{H1I1 -> True}, {H1I2 -> True}, {H2I1 -> False}} If the call is flagInitiatorsThatArePartOfAFullList(exportGroup, {H1I1, H2I1}) Then the resultant mapping will be: {{H1I1 -> False}, {H2I1 -> False}}