public void createObjectsFramesAndRegs(TraceObjectThread thread, Lifespan lifespan,
			TracePlatform platform, int n) {
		DBTraceObjectManager objs = trace.getObjectManager();
		KeyPath pathThread = thread.getObject().getCanonicalPath();
		for (int i = 0; i < n; i++) {
			KeyPath pathContainer = pathThread.key("Stack").index(i).key("Registers");
			for (Register reg : platform.getLanguage().getRegisters()) {
				TraceObject regObj = objs.createObject(pathContainer.index(reg.getName()));
				regObj.insert(lifespan, ConflictResolution.DENY);
			}
		}
	}
Get the compiler spec with the given language and compiler IDs

@param langID the language ID as in {@link LanguageID}
@param compID the compiler ID as in {@link CompilerSpecID}
@return the compiler spec
@throws CompilerSpecNotFoundException if the compiler spec does not exist
@throws LanguageNotFoundException if the language does not exist
Ghidra/Debug/Framework-TraceModeling/src/test/java/ghidra/trace/database/ToyDBTraceBuilder.java