Actually, I'd be very surprised if the TransactionRequiredException is not the outcome in 5.x already. In absence of verification against 5.x I am going to assume this issue is out-of-date.