private void testVersion(int expectedVersion) throws DatabaseVersionException {

		if (table == null) {
			throw new DatabaseVersionException("Instruction table not found");
		}
		int versionNumber = table.getSchema().getVersion();
		if (versionNumber != expectedVersion) {
			throw new DatabaseVersionException("Prototype table: Expected Version " +
				expectedVersion + ", got " + versionNumber);
		}
	}
@see ghidra.program.database.code.ProtoDBAdapter#getVersion()
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/ProtoDBAdapterV0.java