parentPortletUrl.setDelegatePortletUrl(delegatePortletUrl);
final PortletMode mode = delegateState.getPortletMode();
delegatePortletUrl.setPortletMode(mode);
final WindowState state = delegateState.getWindowState();
delegatePortletUrl.setWindowState(state);
}
final WindowState parentWindowState = delegationRequest.getParentWindowState();
if (parentWindowState != null) {
parentPortletUrl.setWindowState(parentWindowState);
}
final PortletMode parentPortletMode = delegationRequest.getParentPortletMode();
if (parentPortletMode != null) {