try
{
if(portletID == null || portletID.equals(""))
throw new NameNotFoundException("Undefined or empty portletID not allowed");
PortletWindowRegistryService windowService = (PortletWindowRegistryService) ServiceManager.getService(PortletWindowRegistryService.class);
PortletWindow renderWindow = windowService.createPortletWindow(windowID, portletID);
logger.info("Portlet window of " + portletID + "," + windowID + ": " + renderWindow);
//this.deliveryContext.addUsedContent("selectiveCacheUpdateNonApplicable");
this.deliveryContext.addUsedContent("portlet_" + portletID);
logger.info("Adding portlet_" + portletID);