The end in the block finallyis called only if the status of the transaction STATUS_ACTIVE, that is, it has not been fixed and not canceled. it looks like security to ensure that the transaction is either canceled or committed at the end of the method, in case it utx.commit()was forgotten in the try block of the method.
source
share