String editOnSite = CmsPropertyHandler.getEditOnSite();
boolean isEditOnSightDisabled = templateController.getIsEditOnSightDisabled();
if(allowEditOnSightAtAll && !isEditOnSightDisabled && editOnSite != null && editOnSite.equalsIgnoreCase("true"))
{
templateController = new EditOnSiteBasicTemplateController(dbWrapper, infoGluePrincipal);
templateController.setStandardRequestParameters(siteNodeId, languageId, contentId);
templateController.setHttpRequest(request);
templateController.setBrowserBean(browserBean);
templateController.setDeliveryControllers(this.nodeDeliveryController, null, this.integrationDeliveryController);
}