anchor.diff:  [section 3]
   TRACE [com.arjuna.ats.jta] (default task-1) BaseTransaction.commit
   TRACE [com.arjuna.ats.jta] (default task-1) TransactionImple.commitAndDisassociate
  -TRACE [com.arjuna.ats.jta] (default task-1) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE
  +TRACE [com.arjuna.ats.jta] (default task-1) TransactionImple.getStatus: jakarta.transaction.Status.STATUS_ACTIVE
   TRACE [com.arjuna.ats.arjuna] (default task-1) BasicAction::End() for action-id 0:ffff0a28050c:-a09a5fe:5c598d64:3b
   
   [section 4]
  
positive.code: ----
  
  When the user runs the Stateful Session Bean he can implement
  interface https://javaee.github.io/javaee-spec/javadocs/javax/ejb/SessionSynchronization.html[javax.ejb.SessionSynchronization]
  (or to use annotations) for the definition of the synchronization callbacks onto the bean.
  The session synchronization defines three methods.
  Of these three methods `afterBegin` is not connected to the transaction synchronization so we will not discuss it further.
  
negative.code: and there is no transaction context available (e.g. at `afterCompletion`) the `java.lang.IllegalStateException`
  is thrown.
  
  The other option for the user is to use https://jakarta.ee/specifications/transactions/2.0/apidocs/jakarta/transaction/transaction[the transaction object]
  to register the synchronization.
  
  [source,java,options="nowrap"]
  