code: public Connection getInnermostDelegate()
      {
          Connection c = _conn;
          while (c != null && c instanceof WrappedConnection)
          {
              c = ((WrappedConnection) c).getDelegate();
              if (this == c)
              {
                  return null;
              }
          }
          return c;
      }
docs: If my underlying <tt>Connection</tt> is not a
  <tt>WrappedConnection</tt>, returns it,
  otherwise recursively invokes this method on
  my delegate.
  <p>
  Hence this method will return the first
  delegate that is not a <tt>WrappedConnection</tt>,
  or <tt>null</tt> when no non-<tt>WrappedConnection</tt>
  delegate can be found by transversing this chain.
  <p>
  This method is useful when you may have nested
  <tt>WrappedConnection</tt>s, and you want to make
  sure to obtain a "genuine" {@link java.sql.Connection}.