private void filterByContextTenant(List<VirtualArrayRestRep> inputArrays,List<VirtualArrayRestRep> virtualArraysByTenant){
  Iterator<VirtualArrayRestRep> iterator=inputArrays.iterator();
  while (iterator.hasNext()) {
    VirtualArrayRestRep rep=iterator.next();
    if (!contains(rep.getId(),virtualArraysByTenant)) {
      iterator.remove();
    }
  }
}

private void filterByContextTenant ( List < VirtualArrayRestRep > inputArrays , List < VirtualArrayRestRep > virtualArraysByTenant ) { Iterator < VirtualArrayRestRep > iterator = inputArrays . iterator ( ) ; while ( iterator . hasNext ( ) ) { VirtualArrayRestRep rep = iterator . next ( ) ; if ( ! contains ( rep . getId ( ) , virtualArraysByTenant ) ) { iterator . remove ( ) ; } } }
remove any varrays , which context ' s tenant doesn ' t have access to , from inputarrays
