code: @Override
     public ResultSet getResultSet() throws SQLException {
        final ResultSet resultSet = delegate.getResultSet();
        if (resultSet != null) {
           if (proxyResultSet == null || ((ProxyResultSet) proxyResultSet).delegate != resultSet) {
              proxyResultSet = ProxyFactory.getProxyResultSet(connection, this, resultSet);
           }
        }
        else {
           proxyResultSet = null;
        }
        return proxyResultSet;
     }
docs: {@inheritDoc}