return userContext;
}
protected InteractionParams getInteractionParams(InteractionRequest actionRequest) {
InteractionParams interactionParams = new InteractionParams();
interactionParams.setPortletStateChange(consumerEnv.getPortletStateChange());
// access POPs with cloneBeforeWrite
// however keep the default behaviour from ConsEnv
// this means that if readWrite is set and we access a POP then set to cloneBeforeWrite
if (!portlet.isConsumerConfigured() &&
interactionParams.getPortletStateChange().toString().equalsIgnoreCase(StateChange._readWrite)) {
interactionParams.setPortletStateChange(StateChange.cloneBeforeWrite);
}
interactionParams.setInteractionState(actionRequest.getInteractionState());
interactionParams.setFormParameters(actionRequest.getFormParameters());
interactionParams.setUploadContexts(null);
interactionParams.setExtensions(null);
return interactionParams;
}