throw new IllegalArgumentException("Cannot construct a WSRPPortletURL from a null PortletURL!");
}
Mode mode = containerURL.getMode();
WindowState windowState = containerURL.getWindowState();
StateString navigationalState = containerURL.getNavigationalState();
WSRPPortletURL url;
if (containerURL instanceof ActionURL)
{
StateString interactionState = ((ActionURL)containerURL).getInteractionState();
url = new WSRPActionURL(mode, windowState, secure, navigationalState, interactionState, context);
}
else if (containerURL instanceof RenderURL)
{
url = new WSRPRenderURL(mode, windowState, secure, navigationalState, ((RenderURL)containerURL).getPublicNavigationalStateChanges(), context);