public List<BlogEntry> getBlogEntries(WikiPluginMacro macro) {
BlogPreferences prefs = Preferences.instance().get(BlogPreferences.class, macro);
if (pager == null) {
log.debug("creating new pager with page size from macro preferences: " + prefs.getPageSize());
pager = new Pager(prefs.getPageSize());
pager.setPage(page);
}
if (blogEntries == null || !pager.getPageSize().equals(prefs.getPageSize())) {
log.debug("blog entries list is null or pager is outdated, loading blog entries");