executionByHandle.put(entry.getKey(), execution);
handleIdentities.put(entry.getKey(), entry.getKey());
}
for (Map.Entry<IHierarchyItemHandle, HierarchyItem> entry : factoryHierarchy.entrySet()) {
IHierarchyItemHandle key = handleIdentities.get(entry.getKey());
HierarchyItem item = entry.getValue();
item.parent = handleIdentities.get(item.parent); // substitute 'copy' handle with 'real' handle
CopyOnWriteArrayList<IHierarchyItemHandle> children = new CopyOnWriteArrayList<IHierarchyItemHandle>();
for (IHierarchyItemHandle child : item.children) {
children.add(handleIdentities.get(child)); // add 'real' handle instead of 'copy' handle