for (IPerson person : persons) { if (person.getNome().equals(personName) && grantOwners.size() < numberOfElementsInSpan) { grantOwners.add(person.getGrantOwner());
IGrantOwner grantOwner = null; for (Iterator iter = grantOwners.listIterator(startIndex); iter.hasNext() && result.size() <= numberOfElementsInSpan;) {  grantOwner = (IGrantOwner) iter.next();  if (grantOwner.getPerson().getNome().equals(personName)) { result.add(grantOwner);
    public List readGrantOwnerByPersonName(String personName, Integer startIndex,            Integer numberOfElementsInSpan) throws ExcepcaoPersistencia {        List<IPerson> persons = (List<IPerson>) readAll(Person.class);        List<IGrantOwner> grantOwners = new ArrayList(numberOfElementsInSpan);        // FIXME ACABAR!        for (IPerson person : persons) {            if (person.getNome().equals(personName) && grantOwners.size() < numberOfElementsInSpan) {                grantOwners.add(person.getGrantOwner());            }        }        return grantOwners;    }