199200201202203204205206207208209
list.add(visiblePerson); } } // sort the list by display name Collections.sort(list, new DisplayNameComparator()); // limit the list to a maximum of 10 returned results if (list.size() > maxResults) { list = list.subList(0, maxResults); }