docs: public BaseTable makeResourceTable(Record record, BaseTable table, BaseDatabase databaseBase, boolean bHierarchicalTable)
      {   // Create a mirrored record in the locale database
          Record record2 = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(record.getClass().getName());
          if (record2 != null)
          {
              BaseTable table2 = databaseBase.makeTable(record2);
              record2.setTable(table2);
  
              RecordOwner recordOwner = Record.findRecordOwner(record);
              record2.init(recordOwner);
              recordOwner.removeRecord(record2);  // This is okay as ResourceTable will remove this table on close.
  
              record.setTable(table);     // This is necessary to link-up ResourceTable
              if (!bHierarchicalTable)
                  table = new org.jbundle.base.db.util.ResourceTable(null, record);
              else
                  table = new org.jbundle.base.db.util.HierarchicalTable(null, record);
              table.addTable(table2);
          }
          return table;
      }