code: public <T> T unwrap(Class<T> iface)
                      throws SQLException
      {
          try
          {
              return iface.cast(this);
          } catch (Throwable ex)
          {
              // Intentionally blank - SQLException thrown below
          }
  
          throw new SQLException(getClass().getName() + " does not implement " +
                                 iface);
      }
docs: --------------------------------------------------------------------------