{
if (!(connection instanceof BaseConnection))
{
throw new TransactionFactoryException("Unknown connection type");
}
BaseConnection baseConnection = (BaseConnection) connection;
javax.transaction.Transaction jtaTx = getJTATransaction();
if (jtaTx == null)
{
throw new TransactionFactoryException("Unable to get the JTA Transaction");