private boolean exportGroupMasksContainExportGroupVolume(ExportGroup exportGroup,List<ExportMask> exportMasks){
  boolean maskContainsVolume=false;
  StringMap egVolumes=exportGroup.getVolumes();
  if (egVolumes != null && !egVolumes.isEmpty()) {
    for (    ExportMask exportMask : exportMasks) {
      StringMap emVolumes=exportMask.getVolumes();
      if (emVolumes != null && !emVolumes.isEmpty()) {
        Set<String> emVolumeIds=new HashSet<>();
        emVolumeIds.addAll(emVolumes.keySet());
        emVolumeIds.retainAll(egVolumes.keySet());
        if (!emVolumeIds.isEmpty()) {
          maskContainsVolume=true;
          break;
        }
      }
    }
  }
  return maskContainsVolume;
}

private boolean exportGroupMasksContainExportGroupVolume ( ExportGroup exportGroup , List < ExportMask > exportMasks ) { boolean maskContainsVolume = false ; StringMap egVolumes = exportGroup . getVolumes ( ) ; if ( egVolumes != null && ! egVolumes . isEmpty ( ) ) { for ( ExportMask exportMask : exportMasks ) { StringMap emVolumes = exportMask . getVolumes ( ) ; if ( emVolumes != null && ! emVolumes . isEmpty ( ) ) { Set < String > emVolumeIds = new HashSet < > ( ) ; emVolumeIds . addAll ( emVolumes . keySet ( ) ) ; emVolumeIds . retainAll ( egVolumes . keySet ( ) ) ; if ( ! emVolumeIds . isEmpty ( ) ) { maskContainsVolume = true ; break ; } } } } return maskContainsVolume ; }
checks to see if any of the volumes in the passed export group are in any of the passed export masks .
