code: public Object getConnection() throws Exception
     {
        Object result = null;
  
        if (cr1 != null)
        {
           result = cr1.getConnection();
        }
        else
        {
           try
           {
              result = cr2.getConnection();
           }
           catch (Throwable t)
           {
              throw new Exception(t.getMessage(), t);
           }
        }
  
        if (crl != null)
           crl.handleCreated(result);
  
        return result;
     }
docs: {@inheritDoc}