improved getTransaction method ob BeanTransactions class