PortletWindow portletWindow, int expiration,
PortletDefinitionComposite portletDefinition)
throws Exception
{
ContentCacheKey cacheKey = portletContentCache.createCacheKey(requestContext, fragment.getId());
CacheElement cachedElement = portletContentCache.get(cacheKey);
if (cachedElement != null)
{
PortletContent portletContent = (PortletContent)cachedElement.getContent();
fragment.setPortletContent(portletContent);
ContentDispatcherCtrl dispatcher = new ContentDispatcherImpl(portletContent);
HttpServletRequest servletRequest = requestContext.getRequestForWindow(portletWindow);
this.addTitleService.setDynamicTitle(portletWindow, servletRequest, dispatcher.getPortletContent(fragment).getTitle());