private Transaction transaction;
private Transaction getTransaction() {
if (this.transaction == null) {
TransactionBootstrap bootstrap = Beans.getReference(TransactionBootstrap.class);
Class<? extends Transaction> clazz = getConfig().getTransactionClass();
if (clazz == null) {
clazz = StrategySelector.getClass(Transaction.class, bootstrap.getCache());
}
this.transaction = Beans.getReference(clazz);
}