@Override
	public Register getNewRegister(Register oldReg) {
		if (registerNameMap != null) {
			String newName = registerNameMap.get(oldReg.getName());
			if (newName != null) {
				return getNewLanguage().getRegister(newName);
			}
		}
		return super.getNewRegister(oldReg);
	}
<code>SimpleLanguageTranslator</code> provides a simple translator which
derives its mappings from an XML translation specification file.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/SimpleLanguageTranslator.java