//given an initial config and a list of changes, apply each change to the configuration //originalConfig = [a=0, b=1, c=0] and changeList = [a=1,b=0] //result = [a=1, b=0, c=0] static Configuration applyChange(Configuration originalConfig, List<Item> changeList) { Configuration result = new Configuration(); result.setEqualTo(originalConfig); for (int a = 0; a < changeList.Count; a++) { result.changeItemValue(changeList[a].getObjectName(), changeList[a].getObjectValue()); } return result; }