code: private void getConnection(State state) {
          state.con = query.context().connectionProvider().get();
          debug("getting connection");
          debug("cp={}", query.context().connectionProvider());
      }
docs: Gets the current connection.