if (PebbleContext.getInstance().getConfiguration().isMultiBlog()) {
httpRequest.setAttribute(Constants.MULTI_BLOG_KEY, BlogManager.getInstance().getMultiBlog());
httpRequest.setAttribute(Constants.MULTI_BLOG_URL, Utilities.calcBaseUrl(request.getScheme(), BlogManager.getInstance().getMultiBlog().getUrl()));
List<Blog> blogs = BlogManager.getInstance().getPublicBlogs();
Collections.sort(blogs, new BlogByLastModifiedDateComparator());
httpRequest.setAttribute(Constants.BLOGS, blogs);
}
// change the character encoding so that we can successfully get
// international characters from the request when HTML forms are submitted