{
final com.arjuna.wsc11.RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
try
{
final String protocolIdentifier = register.getProtocolIdentifier() ;
final Registrar registrar = registrarMapper.getRegistrar(protocolIdentifier) ;
if (registrar != null)
{
try
{
final W3CEndpointReference participantProtocolService = register.getParticipantProtocolService() ;
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final W3CEndpointReference coordinationProtocolService =
registrar.register(participantProtocolService, protocolIdentifier, instanceIdentifier, isSecure) ;
final RegisterResponseType response = new RegisterResponseType() ;
response.setCoordinatorProtocolService(coordinationProtocolService);
return response;
}