138139140141142143144145146147148149150
if(cohort != null) { List<Object> filteredList = new ArrayList<Object>(); for(Object o: personList) { PersonListItem pli = (PersonListItem)o; if(cohort.getMemberIds().contains(pli.getPersonId())) { filteredList.add(o); } } personList = filteredList;