Cookie rememberMe = CookieUtils.getCookie(request.getCookies(), "rememberMe");
if (rememberMe != null) {
getModel().put("rememberMe", "true");
}
ContentDecoratorContext decoratorContext = new ContentDecoratorContext();
decoratorContext.setView(ContentDecoratorContext.DETAIL_VIEW);
decoratorContext.setMedia(ContentDecoratorContext.HTML_PAGE);
Comment comment = createBlankComment(blog, blogEntry, request);
Comment decoratedComment = (Comment)comment.clone();
blog.getContentDecoratorChain().decorate(decoratorContext, decoratedComment);
getModel().put("decoratedComment", decoratedComment);
getModel().put("undecoratedComment", comment);