code refactored for BeanTransactions class