@Override
public SearchResult<Person> getPersonsByFreeTextSearch(String searchTerm, int offset, int pageSize) {
SearchResult<User> users = getUsersByFreeTextSearch(searchTerm, offset, pageSize);
int count = users.getTotalResults();
List<Person> people = new ArrayList<Person>();
Person person = null;
for(User user : users.getResultSet()){
person = user.toPerson();
person.setId(user.getId());
people.add(person);
}
return new SearchResult<Person>(people, count);
}