ContentDispatcherCtrl dispatcher = null;
boolean contentIsCached = false;
try
{
PortletWindow portletWindow = getPortletWindow(fragment);
PortletDefinitionComposite portletDefinition =
(PortletDefinitionComposite) portletWindow.getPortletEntity().getPortletDefinition();
if (checkSecurityConstraints && !checkSecurityConstraint(portletDefinition, fragment))
{
throw new PortletAccessDeniedException("Access Denied.");
}
if (portletTracking.isOutOfService(portletWindow))
{
log.info("Taking portlet out of service: " + portletDefinition.getUniqueName() + " for window " + fragment.getId());
fragment.overrideRenderedContent(OUT_OF_SERVICE_MESSAGE);
return;
}
long timeoutMetadata = this.getTimeoutOnJob(portletDefinition);
portletTracking.setExpiration(portletWindow, timeoutMetadata);