// transitional feature
  public PersistentStore getRowStore(TableBase table) {

    if (table.isSessionBased) {
      return persistentStoreCollection.getSessionStore(table, table.getPersistenceId());
    }

    return database.persistentStoreCollection.getStore(table.getPersistenceId());
  }
  public PersistentStore getSubqueryRowStore(TableBase table, boolean isCached) {

    RowStoreHybrid store =
        (RowStoreHybrid) persistentStoreCollection.getSessionStore(table, table.getPersistenceId());

    if (store != null) {
      store.removeAll();

      return store;
    }

    return new RowStoreHybrid(session, persistentStoreCollection, table, isCached);
  }