if (transactionContextManager == null) { transactionContextManager = createTransactionContextManager(); }
if (transactionContextManager == null) { Map map = applicationContext.getBeansOfType(TransactionContextManager.class); if (map.size() > 1) { throw new IllegalStateException("only one TransactionContextManager can be registered"); } else if (map.size() == 1) { transactionContextManager = (TransactionContextManager) map.values().iterator().next(); } else { transactionContextManager = createTransactionContextManager(); } }
    public TransactionContextManager getTransactionContextManager() throws XAException {        if (transactionContextManager == null) {            transactionContextManager = createTransactionContextManager();        }        return transactionContextManager;    }