ICacheManager cacheManager = (ICacheManager) ApsWebApplicationUtils.getBean(SystemConstants.CACHE_MANAGER, this.getRequest());
PublicContentAuthorizationInfo authInfo = new PublicContentAuthorizationInfo(content);
cacheManager.putInCache(JacmsSystemConstants.CONTENT_AUTH_INFO_CACHE_PREFIX + contentId, authInfo);
this.setUserOnSession("admin");
this._contentManager.loadContent(contentId, true);
Widget showlet = new Widget();
IWidgetTypeManager showletTypeMan =
(IWidgetTypeManager) this.getService(SystemConstants.WIDGET_TYPE_MANAGER);
WidgetType WidgetType = showletTypeMan.getWidgetType("content_feedback_viewer");
showlet.setType(WidgetType);
ApsProperties prop = new ApsProperties();
prop.put("contentId", contentId);
prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_ACTIVE, "true");
prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_MODERATED, "false");
prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_ANONYMOUS, "false");
prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_RATE_COMMENT, "true");
prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_RATE_CONTENT, "true");
showlet.setConfig(prop);
RequestContext e = new RequestContext();
e.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_WIDGET, showlet);
Lang lang = new Lang();
lang.setCode("en");