public static V1InteractionParams toV1InteractionParams(InteractionParams interactionParams)
{
if (interactionParams != null)
{
V1InteractionParams v1InteractionParams = WSRP1TypeFactory.createInteractionParams(toV1StateChange(interactionParams.getPortletStateChange()));
v1InteractionParams.setInteractionState(interactionParams.getInteractionState());
List<Extension> extensions = interactionParams.getExtensions();
if (extensions != null)
{
v1InteractionParams.getExtensions().addAll(Lists.transform(extensions, EXTENSION));
}
List<NamedString> formParameters = interactionParams.getFormParameters();
if (formParameters != null)
{
v1InteractionParams.getFormParameters().addAll(Lists.transform(formParameters, NAMEDSTRING));
}
List<UploadContext> uploadContext = interactionParams.getUploadContexts();
if (uploadContext != null)
{
v1InteractionParams.getUploadContexts().addAll(Lists.transform(uploadContext, UPLOADCONTEXT));
}
return v1InteractionParams;
}
else