Element root = document.getRootElement();
if (root == null || !TOOL_SET.equals(root.getName())){
throw new InvalidDataException();
}
String groupName = root.getAttributeValue(ATTRIBUTE_NAME);
<BUG>ToolsGroup result = new ToolsGroup(groupName);
for (final Object o : root.getChildren(TOOL)) {</BUG>
Element element = (Element)o;
Tool tool = new Tool();
tool.setName(ToolManager.convertString(element.getAttributeValue(NAME)));

Element root = document.getRootElement();
if (root == null || !TOOL_SET.equals(root.getName())){
throw new InvalidDataException();
}
String groupName = root.getAttributeValue(ATTRIBUTE_NAME);
ToolsGroup result = new ToolsGroup(groupName);
final PathMacroManager macroManager = PathMacroManager.getInstance(ApplicationManager.getApplication());
for (final Object o : root.getChildren(TOOL)) {
Element element = (Element)o;
Tool tool = new Tool();
tool.setName(ToolManager.convertString(element.getAttributeValue(NAME)));
