private void createModelAlias(String aliasName, String parentName,
			List<PrototypeModel> modelList) throws XmlParseException {
		PrototypeModel parentModel = null;
		for (PrototypeModel model : modelList) {
			if (parentName.equals(model.getName())) {
				parentModel = model;
				break;
			}
		}
		if (parentModel == null) {
			throw new XmlParseException("Parent for model alias does not exist: " + parentName);
		}
		if (parentModel.isMerged()) {
			throw new XmlParseException("Cannot make alias of merged model: " + parentName);
		}
		if (parentModel.getAliasParent() != null) {
			throw new XmlParseException("Cannot make alias of an alias: " + parentName);
		}
		PrototypeModel newModel = new PrototypeModel(aliasName, parentModel);
		modelList.add(newModel);
	}
Clone the named PrototypeModel, attaching it to another name.
@param aliasName is the new name
@param parentName is the name of the PrototypeModel to clone
@param modelList is the container
@throws XmlParseException if the parent model cannot be established
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/BasicCompilerSpec.java