{
ModifyRegistration modifyRegistration = WSRPTypeFactory.createModifyRegistration(
V1ToV2Converter.toV2RegistrationContext(registrationContext),
V1ToV2Converter.toV2RegistrationData(registrationData));
RegistrationState result = producer.modifyRegistration(modifyRegistration);
// it is possible (if not likely) that result of modifyRegistration be null
if (result != null)
{
registrationState.value = result.getRegistrationState();
extensions.value = WSRPUtils.transform(result.getExtensions(), V2ToV1Converter.EXTENSION);
}
}
catch (MissingParameters missingParameters)
{
throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);