private void loadStackVariables() {
		if (variables != null)
			return;
		try {
			variables = new ArrayList<Variable>();
			Field[] keys = adapter.getStackVariableKeys(function.getKey());
			for (int i = 0; i < keys.length; i++) {
				DBRecord varRec = adapter.getStackVariableRecord(keys[i].getLongValue());
				variables.add(getStackVariable(varRec));
			}
			Collections.sort(variables, StackVariableComparator.get());
		}
		catch (IOException e) {
			functionManager.dbError(e);
		}
	}
Load the stack variables for this frame.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldStackFrameDB.java