// Set composer
request.setAttribute(WebloungeRequest.COMPOSER, composer);
// Check for action handler
if (action != null && action instanceof HTMLAction) {
HTMLAction htmlAction = (HTMLAction) action;
logger.debug("Action handler found");
if (targetPage != null) {
String templateId = targetPage.getTemplate();
PageTemplate template = site.getTemplate(templateId);
if (template != null && id.equalsIgnoreCase(template.getStage())) {
template.setEnvironment(request.getEnvironment());
if (htmlAction.startStage(request, response, composer) == HTMLAction.SKIP_COMPOSER) {
return EVAL_PAGE;
}
}
}
if (htmlAction.startComposer(request, response, composer) == HTMLAction.SKIP_COMPOSER) {
return EVAL_PAGE;
}
}
// Add cache tag for content provider (in case of inheritance)