/**
*
* @return Returns a list of pages or returns null if has not any page.
*/
public List<PageModel> next() {
ExoContainer container = PortalContainer.getInstance();
PageService pageService = (PageService) container.getComponentInstance(PageService.class);
QueryResult<PageContext> result = pageService.findPages(currentIndex, pageSize + 1,
SiteType.valueOf(ownerType.toUpperCase()), ownerId, name, title);
int size = result.getSize();
hasNext = size > pageSize;