CacheController.cacheObject("userCache", "anonymous", principal);
}
FakeHttpSession fakeHttpServletSession = new FakeHttpSession();
FakeHttpServletResponse fakeHttpServletResponse = new FakeHttpServletResponse();
FakeHttpServletRequest fakeHttpServletRequest = new FakeHttpServletRequest();
fakeHttpServletRequest.setParameter("siteNodeId", "" + siteNodeId);
fakeHttpServletRequest.setParameter("languageId", "" + languageId);
fakeHttpServletRequest.setParameter("contentId", "" + contentId);
fakeHttpServletRequest.setRequestURI("ViewPage.action");
fakeHttpServletRequest.setAttribute("siteNodeId", "" + siteNodeId);
fakeHttpServletRequest.setAttribute("languageId", "" + languageId);
fakeHttpServletRequest.setAttribute("contentId", "" + contentId);
fakeHttpServletRequest.setServletContext(DeliverContextListener.getServletContext());
BrowserBean browserBean = new BrowserBean();
//this.browserBean.setRequest(getRequest());
NodeDeliveryController nodeDeliveryController = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId);
IntegrationDeliveryController integrationDeliveryController = IntegrationDeliveryController.getIntegrationDeliveryController(siteNodeId, languageId, contentId);
TemplateController templateController = getTemplateController(dbWrapper, siteNodeId, languageId, contentId, new FakeHttpServletRequest(), (InfoGluePrincipal)principal, false, browserBean, nodeDeliveryController, integrationDeliveryController);
DeliveryContext deliveryContext = DeliveryContext.getDeliveryContext(/*(InfoGluePrincipal)this.principal*/);
//deliveryContext.setRepositoryName(repositoryName);
deliveryContext.setSiteNodeId(siteNodeId);
deliveryContext.setContentId(contentId);