Reopening, since then I forgot this type of issue (you must begin the transaction before the try-with-resources) and reintroduced other cases while working on
I also thought I did not have to backport r1789045 and Daniel Coric reported the same issue on user ML for R16.11, this was fixed with r1798179
At r1798353 I fixed the same bug introduced with
OFBIZ-9385 for SurveyWrapper and ProductEvents class. I very seriously checked there are not other cases left and learned the Meaning of (?s) in regex while doing so.