List<IGrantOwner> result = readAllBySpan(spanNumber, numberOfElementsInSpan);
List<IGrantOwner> grantOwners = (List<IGrantOwner>) readAll(GrantOwner.class); ComparatorChain comparatorChain = new ComparatorChain(new BeanComparator(orderBy), true); Collections.sort(grantOwners, comparatorChain);  int begin = (spanNumber - 1) * numberOfElementsInSpan; int end = begin + numberOfElementsInSpan;
    public List readAllGrantOwnersBySpan(Integer spanNumber, Integer numberOfElementsInSpan,            String orderBy) throws ExcepcaoPersistencia {        List<IGrantOwner> result = readAllBySpan(spanNumber, numberOfElementsInSpan);        // TODO        // order list by "orderBy"                return result;                // Criteria criteria = new Criteria();        // return readBySpanAndCriteria(spanNumber, numberOfElementsInSpan,        // criteria, orderBy, true);    }