if (plutoPortletWindow instanceof IPortletWindow) {
return (IPortletWindow)plutoPortletWindow;
}
//Try converting the Pluto ID to a uPortal ID
final PortletWindowID plutoPortletWindowId = plutoPortletWindow.getId();
final IPortletWindowId portletWindowId;
if (plutoPortletWindowId instanceof IPortletWindowId) {
portletWindowId = (IPortletWindowId)plutoPortletWindowId;
}
else {
portletWindowId = this.getPortletWindowId(plutoPortletWindowId.getStringId());
}
//Use the converted ID to see if a IPortletWindow exists for it
final IPortletWindow portletWindow = this.getPortletWindow(request, portletWindowId);