public Namespace createClass(Namespace parent, String name, SourceType type) {
		Namespace result = null;

		startTransactions();
		try {
			for (Program p : programs) {
				SymbolTable symbolTable = p.getSymbolTable();
				try {

					// make sure we get the equivalent namespace for the given program
					Namespace parentNamespace = findMatchingNamespace(p, parent);

					Namespace ns = symbolTable.createClass(parentNamespace, name, type);
					if (result == null) {
						result = ns; // always use the first program for consistency
					}
				}
				catch (Exception e) {
					throw new RuntimeException("Exception creating namespace", e);
				}
			}

			return result;
		}
		finally {
			endTransations();
		}
	}
A special test 'program-like' class that allows clients to *easily* make changes one
or more programs.  This is useful for merge tests, which need to setup an environment
that is the same for many different programs.
Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java