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