q.setString(queryPos++, questionId);
com.liferay.portlet.polls.model.PollsChoice[] array = new com.liferay.portlet.polls.model.PollsChoice[3];
ScrollableResults sr = q.scroll();
if (sr.first()) {
while (true) {
PollsChoiceHBM pollsChoiceHBM = (PollsChoiceHBM)sr.get(0);
if (pollsChoiceHBM == null) {
break;