code: public ConnectionListener getActiveConnectionListener(Credential credential)
     {
        if (cm.getTransactionSupport() == TransactionSupportLevel.NoTransaction)
           return null;
  
        try
        {
           TransactionalConnectionManager txCM = (TransactionalConnectionManager) cm;
           Transaction tx = txCM.getTransactionIntegration().getTransactionManager().getTransaction();
  
           if (TxUtils.isUncommitted(tx))
           {
              Object id = txCM.getTransactionIntegration().getTransactionSynchronizationRegistry().getTransactionKey();
              Map<ManagedConnectionPool, ConnectionListener> currentMap = transactionMap.get(id);
              ManagedConnectionPool key = pools.get(credential);
  
              return currentMap.get(key);
           }
        }
        catch (Exception e)
        {
           log.tracef(e, "getActiveConnectionListener(%s)", credential);
        }
  
        return null;
     }
docs: {@inheritDoc}