public static Namespace getOrCreateNameSpace(Program program, String name) {
		SymbolTable symbolTable = program.getSymbolTable();
		Namespace parent = program.getGlobalNamespace();

		Namespace namespace = symbolTable.getNamespace(name, parent);
		if (namespace != null) {
			return namespace;
		}
		try {
			return symbolTable.createNameSpace(parent, name, SourceType.ANALYSIS);
		}
		catch (Exception e) {
			return program.getGlobalNamespace();
		}
	}
Returns the namespace with the given name.
If namespace does not exist, then it gets created first.
@param program the program containing the namespace
@param name the namespace name
@return the namespace object
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/dex/util/DexUtil.java