public static boolean checkIfAnyExportGroupsContainInitiatorAndBlockObject(DbClient dbClient,Set<URI> exportGroupURIs,Initiator initiator,BlockObject blockObject){
  Iterator<ExportGroup> exportGroupIterator=dbClient.queryIterativeObjects(ExportGroup.class,exportGroupURIs,true);
  while (exportGroupIterator.hasNext()) {
    ExportGroup exportGroup=exportGroupIterator.next();
    if (exportGroup.hasInitiator(initiator) && exportGroup.hasBlockObject(blockObject.getId())) {
      return true;
    }
  }
  return false;
}

public static boolean checkIfAnyExportGroupsContainInitiatorAndBlockObject ( DbClient dbClient , Set < URI > exportGroupURIs , Initiator initiator , BlockObject blockObject ) { Iterator < ExportGroup > exportGroupIterator = dbClient . queryIterativeObjects ( ExportGroup . class , exportGroupURIs , true ) ; while ( exportGroupIterator . hasNext ( ) ) { ExportGroup exportGroup = exportGroupIterator . next ( ) ; if ( exportGroup . hasInitiator ( initiator ) && exportGroup . hasBlockObject ( blockObject . getId ( ) ) ) { return true ; } } return false ; }
check if any exportgroups passed in contain the initiator and block object
