NOJIRA add method to get underlying resource for debugging purposes
PROV-855 improve transaction handling