private boolean userInGroupsMembershipList(String userDN,Map<String,Collection<String>> groupMembershipList){
  boolean result=false;
  Collection<Collection<String>> memberLists=groupMembershipList.values();
  Iterator<Collection<String>> memberListsIterator=memberLists.iterator();
  while (memberListsIterator.hasNext() && !result) {
    Collection<String> groupMembers=memberListsIterator.next();
    result=groupMembers.contains(userDN);
  }
  return result;
}

private boolean userInGroupsMembershipList ( String userDN , Map < String , Collection < String > > groupMembershipList ) { boolean result = false ; Collection < Collection < String > > memberLists = groupMembershipList . values ( ) ; Iterator < Collection < String > > memberListsIterator = memberLists . iterator ( ) ; while ( memberListsIterator . hasNext ( ) && ! result ) { Collection < String > groupMembers = memberListsIterator . next ( ) ; result = groupMembers . contains ( userDN ) ; } return result ; }
indicates if the user with the specified dn can be found in the group membership map & # 45 ; as encapsulated by the specified parameter map .
