@WebParam(mode = WebParam.Mode.OUT, name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> registrationState)
throws V1MissingParameters, V1OperationFailed
{
try
{
RegistrationData registrationData = WSRPTypeFactory.createRegistrationData(consumerName, consumerAgent, methodGetSupported);
if (ParameterValidation.existsAndIsNotEmpty(consumerModes))
{
registrationData.getConsumerModes().addAll(consumerModes);
}
if (ParameterValidation.existsAndIsNotEmpty(consumerWindowStates))
{
registrationData.getConsumerWindowStates().addAll(consumerWindowStates);
}
if (ParameterValidation.existsAndIsNotEmpty(consumerUserScopes))
{
registrationData.getConsumerUserScopes().addAll(consumerUserScopes);
}
// registrationData.getCustomUserProfileData().addAll(customUserProfileData);
if (ParameterValidation.existsAndIsNotEmpty(registrationProperties))
{
registrationData.getRegistrationProperties().addAll(WSRPUtils.transform(registrationProperties, V1ToV2Converter.PROPERTY));
}
if (ParameterValidation.existsAndIsNotEmpty(extensions.value))
{
registrationData.getExtensions().addAll(WSRPUtils.transform(extensions.value, V1ToV2Converter.EXTENSION));
}
RegistrationContext registrationContext = producer.register(WSRPTypeFactory.createRegister(registrationData, null, null));
registrationHandle.value = registrationContext.getRegistrationHandle();
registrationState.value = registrationContext.getRegistrationState();