PortletWindow portletWindow, int expiration,
PortletDefinitionComposite portletDefinition)
throws Exception
{
String cacheKey = portletContentCache.createCacheKey(requestContext.getUserPrincipal().getName(), 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);
HttpServletResponse servletResponse = dispatcher.getResponseForWindow(portletWindow, requestContext);