private void history(HttpServletRequest request, ModelAndView next,
WikiPageInfo pageInfo) throws Exception {
String virtualWiki = pageInfo.getVirtualWikiName();
String topicName = WikiUtil.getTopicFromRequest(request);
if (StringUtils.isBlank(topicName)) {
throw new WikiException(new WikiMessage("common.exception.notopic"));
}
pageInfo.setContentJsp(JSP_HISTORY);
pageInfo.setTopicName(topicName);
pageInfo.setPageTitle(new WikiMessage("history.title", topicName));
Pagination pagination = ServletUtil.loadPagination(request, next);
List<RecentChange> changes = WikiBase.getDataHandler().getTopicHistory(
virtualWiki, topicName, pagination, true);
if (changes != null && changes.size() > 0) {
next.addObject("changes", changes);