LPS-51760 Shard needs a customized HibernateTransactionManager to unwrap the SessionFactory proxy before doing threadlocal tx resource binding. Once again it shows how fragile shard is, this solution only works if you are using HibernateTransactionManager. There is no solution for any other type of tx managers, if you do need to use other tx manager, then certainly you have to drop off sharding.
LPS-51760 Update wiring logic to use the new shard aware hibernate tx manager when shard is enabled and you are using LastSessionRecorderHibernateTransactionManager
LPS-51760 Update source formatter excludes
LPS-51760 Fix shard threadlocal leaking regression caused by LPS-31817 755e6035a4f0e074ee12cf7094e8950894a247d3 and c228769af21d0bd28187069e8a686e012d2a1cf5