String[] nameWords = personName.split(" "); normalizeName(nameWords); allPersons = getValidPersons(nameWords, allPersons);
SearchParameters searchParameters = new SearchPerson.SearchParameters(personName, null, null, null, null, null, null, null); SearchPersonPredicate predicate = new SearchPerson.SearchPersonPredicate(searchParameters); allPersons = (List<Person>) CollectionUtils.select(allPersons, predicate);
    private List<Person> getAllValidPersonsByName() throws FenixServiceException, FenixFilterException {        List<Person> allPersons = getAllPersonsToSearch(RoleType.PERSON);        String[] nameWords = personName.split(" ");        normalizeName(nameWords);        allPersons = getValidPersons(nameWords, allPersons);        Collections.sort(allPersons, new BeanComparator("nome"));        return allPersons;    }