private RegisterManager parseRegisters(Element element, AddressFactory addrFactory)
			throws SAXException {
		RegisterBuilder regBuilder = new RegisterBuilder();
		List<?> children = element.getChildren();
		Iterator<?> iter = children.iterator();
		while (iter.hasNext()) {
			Element childElement = (Element) iter.next();
			String elementName = childElement.getName();
			if ("context_register".equals(elementName) || "register".equals(elementName)) {
				boolean bigEndian =
					"context_register".equals(elementName) ? true : endian.isBigEndian();
				String name = childElement.getAttributeValue("name");
				if (name == null) {
					throw new SAXException("Missing required register 'name' attribute");
				}
				Address addr = parseRegisterAddress(childElement, addrFactory);
				int bitsize = parseIntAttribute(childElement, "bitsize");
				AddressSpace space = addr.getAddressSpace();

				regBuilder.addRegister(name, name, addr, (bitsize + 7) / 8, 0, bitsize, bigEndian,
					0);

				if (space.isLoadedMemorySpace() && space instanceof GenericAddressSpace) {
					((GenericAddressSpace) space).setHasMappedRegisters(true);
				}

				if ("context_register".equals(elementName)) {
					parseContextFields(childElement, regBuilder, addr, bitsize);
				}
			}
			else {
				throw new SAXException("Unsupported registers element '" + elementName + "'");
			}
		}
		return regBuilder.getRegisterManager();
	}
Returns language description associated with this old language.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/OldLanguage.java