private static boolean volumeIsInAnotherExportMask(ExportMask exportMask,String volumeURIString,TreeMultimap<String,URI> volumesToExportMasks){
  boolean isInAnotherMask=false;
  if (volumesToExportMasks.containsKey(volumeURIString)) {
    Set<URI> exportMaskURIs=new HashSet<>(volumesToExportMasks.get(volumeURIString));
    exportMaskURIs.remove(exportMask.getId());
    isInAnotherMask=!exportMaskURIs.isEmpty();
  }
  return isInAnotherMask;
}

private static boolean volumeIsInAnotherExportMask ( ExportMask exportMask , String volumeURIString , TreeMultimap < String , URI > volumesToExportMasks ) { boolean isInAnotherMask = false ; if ( volumesToExportMasks . containsKey ( volumeURIString ) ) { Set < URI > exportMaskURIs = new HashSet < > ( volumesToExportMasks . get ( volumeURIString ) ) ; exportMaskURIs . remove ( exportMask . getId ( ) ) ; isInAnotherMask = ! exportMaskURIs . isEmpty ( ) ; } return isInAnotherMask ; }
routine will determine if the volume is associated with an exportmask other than ' exportmask ' .
