Map<IModelElement, IModelElement> result
= new HashMap<IModelElement, IModelElement>();
for (IDifference difference : differences) {
if (difference.getLayer() == IDifference.Layer.MODELITEM) {
IModelElement amItem = difference.getAMElement();
IModelElement dmItem = difference.getDMElement();
result.put(amItem, dmItem);
}
}