private void processModule(XmlElement element, XmlPullParser parser) {
		String name = element.getAttribute("NAME");
		ProgramModule parent = moduleStack.peek();
		ProgramModule newModule = null;
		try {
			try {
				newModule = parent.createModule(name);
			}
			catch (DuplicateNameException dne) {
				newModule = listing.getModule(treeName, name);
				parent.add(newModule);
			}
			moduleStack.push(newModule);
		}
		catch (Exception e) {
			log.appendException(e);
			parser.discardSubTree(element);
		}
	}
Write out the XML for the program trees.
@param writer writer for XML
@param addrs the addresses
@param m monitor that can be canceled should be written
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/ProgramTreeXmlMgr.java