}
}
else {
ScrollableResults sr = q.scroll();
if (sr.first() && sr.scroll(begin)) {
for (int i = begin; i < end; i++) {
PollsDisplayHBM pollsDisplayHBM = (PollsDisplayHBM)sr.get(0);
list.add(PollsDisplayHBMUtil.model(pollsDisplayHBM));
if (!sr.next()) {