HashMap<ComponentFactory,ComponentFactory> componentMap;
HashMap<Tool,Tool> toolMap;
componentMap = new HashMap<ComponentFactory,ComponentFactory>();
toolMap = new HashMap<Tool,Tool>();
for (Tool oldTool : old.getTools()) {
Tool newTool = base.getTool(oldTool.getName());
toolMap.put(oldTool, newTool);
if (oldTool instanceof AddTool) {
ComponentFactory oldFactory = ((AddTool) oldTool).getFactory();
if (newTool != null && newTool instanceof AddTool) {
ComponentFactory newFactory = ((AddTool) newTool).getFactory();