protected boolean maskAppliesToMultipleHosts(ExportMask mask){
  Set<URI> existingMaskHosts=new HashSet<URI>();
  Set<URI> initiatorIds=ExportMaskUtils.getAllInitiatorsForExportMask(_dbClient,mask);
  for (  URI initiatorId : initiatorIds) {
    Initiator initiator=_dbClient.queryObject(Initiator.class,initiatorId);
    if (initiator == null) {
      _log.info(String.format("maskAppliesToMultipleHosts - Initiator %s does not exist in DB",initiatorId.toString()));
      continue;
    }
    existingMaskHosts.add(initiator.getHost());
  }
  return existingMaskHosts.size() > 1;
}

protected boolean maskAppliesToMultipleHosts ( ExportMask mask ) { Set < URI > existingMaskHosts = new HashSet < URI > ( ) ; Set < URI > initiatorIds = ExportMaskUtils . getAllInitiatorsForExportMask ( _dbClient , mask ) ; for ( URI initiatorId : initiatorIds ) { Initiator initiator = _dbClient . queryObject ( Initiator . class , initiatorId ) ; if ( initiator == null ) { _log . info ( String . format ( "maskAppliesToMultipleHosts - Initiator %s does not exist in DB" , initiatorId . toString ( ) ) ) ; continue ; } existingMaskHosts . add ( initiator . getHost ( ) ) ; } return existingMaskHosts . size ( ) > 1 ; }
check to see if this mask applies to multiple hosts already . helps us to determine if this is a qualifying mask for brownfield
