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