String pageKey = this.nodeDeliveryController.getPageCacheKey(dbWrapper.getDatabase(), this.getHttpSession(), this.getRequest(), this.siteNodeId, this.languageId, this.contentId, browserBean.getUseragent(), this.getRequest().getQueryString(), "_" + this.showSimple + "_pagecomponentDecorated");
templateController = getTemplateController(dbWrapper, getSiteNodeId(), getLanguageId(), getContentId(), getRequest(), (InfoGluePrincipal)this.principal, true);
InfoGluePrincipal principal = templateController.getPrincipal();
String cmsUserName = (String)templateController.getHttpServletRequest().getSession().getAttribute("cmsUserName");
if(cmsUserName != null && !CmsPropertyHandler.getAnonymousUser().equalsIgnoreCase(cmsUserName))
principal = templateController.getPrincipal(cmsUserName);
//As this is the decorated view we need to cache personalized results due to access rights etc.
if(principal != null && pageKey.indexOf(principal.getName()) == -1)
pageKey = pageKey + "_" + principal.getName();
if(logger.isInfoEnabled())
logger.info("A pageKey:" + pageKey);
if(logger.isInfoEnabled())