protected TransactionManager getTransactionManager(Properties properties)
{
if (transactionManager == null)
{
TransactionManagerLookup transactionManagerLookup = TransactionManagerLookupFactory.getTransactionManagerLookup(properties);
if (transactionManagerLookup!=null) {
transactionManager = transactionManagerLookup.getTransactionManager(properties);
}
else
{
transactionManager = TransactionManagerLocator.getInstance().locate();
}