}
}
else {
ScrollableResults sr = q.scroll();
if (sr.first() && sr.scroll(begin)) {
for (int i = begin; i < end; i++) {
PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)sr.get(0);
list.add(PortletPreferencesHBMUtil.model(
portletPreferencesHBM));