code: @Override
     protected org.ironjacamar.core.connectionmanager.listener.ConnectionListener
        getConnectionListener(Credential credential) throws ResourceException
     {
        org.ironjacamar.core.connectionmanager.listener.ConnectionListener cl =
           super.getConnectionListener(credential);
  
        try
        {
           if (!cl.isEnlisted() &&
               TxUtils.isUncommitted(ti.getTransactionManager().getTransaction()) &&
               shouldEnlist(cl))
              cl.enlist();
        
           return cl;
        }
        catch (ResourceException re)
        {
           throw re;
        }
        catch (Exception e)
        {
           throw new ResourceException(e);
        }
     }
docs: {@inheritDoc}