ValidationContext context = validateComment(comment);
// are we previewing or adding the comment?
String previewButton = I18n.getMessage(blog, "comment.previewButton");
ContentDecoratorContext decoratorContext = new ContentDecoratorContext();
decoratorContext.setView(ContentDecoratorContext.DETAIL_VIEW);
decoratorContext.setMedia(ContentDecoratorContext.HTML_PAGE);
Comment decoratedComment = (Comment)comment.clone();
blog.getContentDecoratorChain().decorate(decoratorContext, decoratedComment);
getModel().put("decoratedComment", decoratedComment);
getModel().put("undecoratedComment", comment);