ArjunaContextImple arjunaContext = (ArjunaContextImple)manager.context();
final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
final String registrationCoordinatorURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
final CoordinationContextType coordinationContext = new CoordinationContextType() ;
coordinationContext.setCoordinationType(new URI(coordinationTypeURI)) ;
coordinationContext.setIdentifier(new AttributedURIType(arjunaContext.getTransactionIdentifier())) ;
final int transactionExpires = arjunaContext.getTransactionExpires() ;
if (transactionExpires > 0)
{
coordinationContext.setExpires(new AttributedUnsignedIntType(transactionExpires)) ;
}
final EndpointReferenceType registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
InstanceIdentifier.setEndpointInstanceIdentifier(registrationCoordinator, arjunaContext.getTransactionIdentifier()) ;
coordinationContext.setRegistrationService(registrationCoordinator) ;
return coordinationContext;
}
catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
{