List<IPerson> persons = (List<IPerson>) readAll(Person.class); Integer result = 0;
List<IGrantOwner> grantOwners = (List<IGrantOwner>) readAll(GrantOwner.class); int result = 0;
    public Integer countAllGrantOwnerByName(String personName) {        List<IPerson> persons = (List<IPerson>) readAll(Person.class);        Integer result = 0;        for (IPerson person : persons) {            if (person.getNome().equals(personName)) {                result++;            }        }        return result;    }