if (blogEntry == null) {
// the entry cannot be found - it may have been removed or the
// requesting URL was wrong
return new NotFoundView();
} else if (!blogEntry.isPublished() && !(SecurityUtils.isUserAuthorisedForBlog(blog))) {
// the entry exists, but isn't yet published
return new NotFoundView();
} else {
getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
getModel().put(Constants.MONTHLY_BLOG, blog.getBlogForDay(blogEntry.getDate()).getMonth());
getModel().put("displayMode", "detail");