personList = queryList(Person.class, criteria); return personList;
if (startIndex != null && numberOfElementsInSpan != null) { return readInterval(Person.class, criteria, numberOfElementsInSpan, startIndex); } return queryList(Person.class, criteria);
    public List<IPerson> findPersonByName(String name) throws ExcepcaoPersistencia {        List<IPerson> personList = null;        Criteria criteria = new Criteria();        criteria.addLike("name", name);        personList = queryList(Person.class, criteria);        return personList;    }