model.put(Constants.BLOG_KEY, blog);
model.put(Constants.BLOG_URL, blog.getUrl());
action.setModel(model);
View view;
try {
view = action.process(request, response);
} catch (ClassCastException cce) {
// PEBBLE-45 Actions intended for single blog mode should fail nicely. This is a simple method that will
// allow has to handle all actions with minimal effort
if (cce.getMessage().contains(MultiBlog.class.getName()) && cce.getMessage().contains(Blog.class.getName())) {
view = new MultiBlogNotSupportedView();