docs: public int getMasterSlave()
      {
          int iRecordOwnerMasterSlave = 0;    // None by default
          int iDBMasterSlave = RecordOwner.MASTER | RecordOwner.SLAVE;    // Both by default
          if (this.getRecordOwner() != null)
              iRecordOwnerMasterSlave = this.getRecordOwner().getMasterSlave();
          if (m_table != null)
          {
              if (this.getTable() != null)
                  if (this.getTable().getCurrentTable() != null)
                      if (this.getTable().getCurrentTable().getDatabase() != null)
                          iDBMasterSlave = this.getTable().getCurrentTable().getDatabase().getMasterSlave();
              if (iDBMasterSlave == RecordOwner.SLAVE)
                  if (this.getRecordOwner() == null)
                      iDBMasterSlave = RecordOwner.MASTER | RecordOwner.SLAVE;    // The only records that don't have an owner in a slave are user-added.
          }
          return iRecordOwnerMasterSlave | iDBMasterSlave;
      }