for(Map.Entry<String, ConfigId> dep : config.getConfigDeps().entrySet()) { final ElementNode configDep = addElement(configDeps, Element.CONFIG_DEP.getLocalName(), ns); addAttribute(configDep, Attribute.ID.getLocalName(), dep.getKey()); final ConfigId configId = dep.getValue(); if(configId.getModel() != null) { addAttribute(configDep, Attribute.MODEL.getLocalName(), configId.getModel()); addAttribute(configDep, Attribute.NAME.getLocalName(), configId.getName());