private DBRecord translateRecord(DBRecord oldRec) {
		if (oldRec == null) {
			return null;
		}
		DBRecord rec = TO_REFS_SCHEMA.createRecord(oldRec.getKey());
		rec.setIntValue(REF_COUNT_COL, oldRec.getIntValue(REF_COUNT_COL));
		rec.setBinaryData(REF_DATA_COL, oldRec.getBinaryData(REF_DATA_COL));
		rec.setByteValue(REF_LEVEL_COL, getRefLevel(rec));
		return rec;
	}
To change the template for this generated type comment go to
Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/references/ToAdapterV0.java