this.userCommentDisplayVC.contextPut("formatter", Formatter.getInstance(getLocale()));
this.userCommentDisplayVC.contextPut("securityCallback", securityCallback);
this.userCommentDisplayVC.contextPut("comment", userComment);
// Creator information
User user = userComment.getCreator().getUser();
TextComponent creator = TextFactory.createTextComponentFromI18nKey("creator", null, null, null, true, userCommentDisplayVC);
creator.setText(translate("comments.comment.creator", new String[]{user.getProperty(UserConstants.FIRSTNAME, null), user.getProperty(UserConstants.LASTNAME, null)}));
// Portrait
if (CoreSpringFactory.containsBean(UserAvatarDisplayControllerCreator.class.getName())) {
UserAvatarDisplayControllerCreator avatarControllerCreator = (UserAvatarDisplayControllerCreator) CoreSpringFactory.getBean(UserAvatarDisplayControllerCreator.class);
Controller avatarCtr = avatarControllerCreator.createController(ureq, getWindowControl(), userComment.getCreator(), false, true);
listenTo(avatarCtr);