public static V1BlockingInteractionResponse toV1BlockingInteractionResponse(BlockingInteractionResponse blockingInteractionResponse)
{
if (blockingInteractionResponse != null)
{
V1BlockingInteractionResponse result;
V1UpdateResponse updateResponse = toV1UpdateResponse(blockingInteractionResponse.getUpdateResponse());
String redirectURL = blockingInteractionResponse.getRedirectURL();
if (redirectURL != null)
{
result = WSRP1TypeFactory.createBlockingInteractionResponse(redirectURL);
}
else
{
result = WSRP1TypeFactory.createBlockingInteractionResponse(updateResponse);
}
List<V1Extension> extensions = WSRPUtils.transform(blockingInteractionResponse.getExtensions(), EXTENSION);
if (extensions != null)
{
result.getExtensions().addAll(extensions);
}
return result;
}
else