private static void parseSetContext(Element element, Map<String, BigInteger> contextSettings)
			throws SAXException {
		String name = element.getAttributeValue("name");
		if (name == null) {
			throw new SAXException("Missing required set_context 'name' attribute");
		}
		String valStr = element.getAttributeValue("value");
		if (valStr == null) {
			throw new SAXException("Missing required set_context 'value' attribute");
		}
		BigInteger val;
		try {
			if (valStr.startsWith("0x")) {
				valStr = valStr.substring(2);
				val = new BigInteger(valStr, 16);
			}
			else {
				val = new BigInteger(valStr);
			}
		}
		catch (NumberFormatException e) {
			throw new SAXException(
				"invalid set_context attribute value: " + name + "=\"" + valStr + "\"");
		}
		contextSettings.put(name, val);
	}
Generate a simple language translator from XML source

@param translatorSpecSource
@param languageTranslationElement
@return simple language translator
@throws SAXException
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/SimpleLanguageTranslator.java