question: 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 ( ) ; } } }
target:  remove any varrays, which context's tenant doesn't have access to, from inputArrays