UpdateResponse result = WSRPTypeFactory.createUpdateResponse();
result.setMarkupContext(toV2MarkupContext(updateResponse.getMarkupContext()));
String state = updateResponse.getNavigationalState();
if (state != null)
{
result.setNavigationalContext(WSRPTypeFactory.createNavigationalContextOrNull(new OpaqueStateString(state), null));
}
result.setNewWindowState(updateResponse.getNewWindowState());
result.setPortletContext(toV2PortletContext(updateResponse.getPortletContext()));
result.setSessionContext(toV2SessionContext(updateResponse.getSessionContext()));
result.setNewMode(updateResponse.getNewMode());