*/
final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
final String registrationCoordinatorURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
final ArjunaContextImple arjunaContext = ArjunaContextImple.getContext() ;
final CoordinationContextType coordinationContext = new CoordinationContextType() ;
coordinationContext.setCoordinationType(new URI(coordinationTypeURI)) ;
coordinationContext.setIdentifier(new AttributedURIType(arjunaContext.getTransactionIdentifier(0))) ;
final int transactionExpires = arjunaContext.getTransactionExpires(0) ;
if (transactionExpires > 0)
{
coordinationContext.setExpires(new AttributedUnsignedIntType(transactionExpires)) ;
}
final EndpointReferenceType registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
InstanceIdentifier.setEndpointInstanceIdentifier(registrationCoordinator, arjunaContext.getTransactionIdentifier(0)) ;
coordinationContext.setRegistrationService(registrationCoordinator) ;
/*
* Now add the registrar for this specific coordinator to the
* mapper.