throw new IllegalStateException("Cannot execute configModeAciton without a delegate window ID in the session for key: " + RenderPortletTag.DEFAULT_SESSION_KEY_PREFIX + fname);
}
final PortletDelegationDispatcher requestDispatcher = this.portletDelegationLocator.getRequestDispatcher(actionRequest, portletWindowId);
final DelegationActionResponse delegationResponse = requestDispatcher.doAction(actionRequest, actionResponse);
final PortletUrl renderUrl = delegationResponse.getRenderUrl();
final DelegateState delegateState = delegationResponse.getDelegateState();
if (renderUrl == null ||
(renderUrl.getPortletMode() != null && !IPortletAdaptor.CONFIG.equals(renderUrl.getPortletMode())) ||
!IPortletAdaptor.CONFIG.equals(delegateState.getPortletMode())) {