{
try
{
final TxContextImple ctx = ((TxContextImple) _ctxManager.currentTransaction()) ;
if (ctx == null) {
throw new WrongStateException();
}
final String id = ctx.identifier() ;
final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);