public static V1MarkupParams toV1MarkupParams(MarkupParams markupParams)
{
if (markupParams != null)
{
V1MarkupParams v1MarkupParams = WSRP1TypeFactory.createMarkupParams(markupParams.isSecureClientCommunication(), markupParams.getLocales(),
markupParams.getMimeTypes(), markupParams.getMode(), markupParams.getWindowState());
v1MarkupParams.setClientData(toV1ClientData(markupParams.getClientData()));
NavigationalContext navigationalContext = markupParams.getNavigationalContext();
if (navigationalContext != null)
{
v1MarkupParams.setNavigationalState(navigationalContext.getOpaqueValue());
}
v1MarkupParams.setValidateTag(markupParams.getValidateTag());
List<String> charSets = markupParams.getMarkupCharacterSets();
if (charSets != null)
{
v1MarkupParams.getMarkupCharacterSets().addAll(charSets);
}
List<String> validNewModes = markupParams.getValidNewModes();
if (validNewModes != null)
{
v1MarkupParams.getValidNewModes().addAll(validNewModes);
}
List<String> validNewWindowStates = markupParams.getValidNewWindowStates();
if (validNewWindowStates != null)
{
v1MarkupParams.getValidNewWindowStates().addAll(validNewWindowStates);
}
List<V1Extension> extensions = WSRPUtils.transform(markupParams.getExtensions(), EXTENSION);
if (extensions != null)
{
v1MarkupParams.getExtensions().addAll(extensions);
}
return v1MarkupParams;
}
else