fixes #2686
Merge pull request #2694 from gurbuzali/xa-recovery-fix/3.2.3

Xa recovery fix/3.2.3
3.2.4-SNAPSHOT
fixes #2577
change conditions
change Exception, add individual tests and add checking for null array.
fixed imports