improved getting transaction from naming context