private void view(HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo) throws Exception {
String virtualWiki = pageInfo.getVirtualWikiName();
Pagination pagination = ServletUtil.loadPagination(request, next);
WikiUserDetails userDetails = ServletUtil.currentUserDetails();
if (userDetails.hasRole(RoleImpl.ROLE_ANONYMOUS)) {
throw new WikiException(new WikiMessage("watchlist.error.loginrequired"));
}
WikiUser user = ServletUtil.currentWikiUser();
List<RecentChange> changes = WikiBase.getDataHandler().getWatchlist(virtualWiki, user.getUserId(), pagination);
next.addObject("numChanges", changes.size());
next.addObject("changes", changes);