uiPortlet.update(portletState);
}
else
{
// todo: fix me as this shouldn't probably be done only for the WSRP case
PortletContext clonedContext = instanceCtx.getClonedContext();
if (clonedContext != null)
{
WSRP wsrp = new WSRP();
wsrp.setPortletId(clonedContext.getId());
wsrp.setCloned(true); // mark the state as cloned
// if we have an associated state, record it as well...
if (clonedContext instanceof StatefulPortletContext)
{