public static List<URI> filterVolumesByExportMask(List<URI> volumeURIs,ExportMask exportMask){
  List<URI> result=new ArrayList<URI>();
  for (  URI uri : volumeURIs) {
    if (exportMask.hasVolume(uri)) {
      result.add(uri);
    }
  }
  return result;
}

public static List < URI > filterVolumesByExportMask ( List < URI > volumeURIs , ExportMask exportMask ) { List < URI > result = new ArrayList < URI > ( ) ; for ( URI uri : volumeURIs ) { if ( exportMask . hasVolume ( uri ) ) { result . add ( uri ) ; } } return result ; }
filters a volume list to only those in the exportmask . volumes
