attributes.put(entry.getKey(), entry.getValue());
}
}
public ElementParticleConfig save() {
ElementParticleConfig xml = ElementParticleConfig.Factory.newInstance();
xml.setName(name);
for (Map.Entry<String, String> entry : attributes.entrySet()) {
MapEntryConfig mapEntry = xml.addNewAttribute();
mapEntry.setKey(entry.getKey());
mapEntry.setValue(entry.getValue());
}
TypeConfig xml2 = type.save();
xml.setType(xml2);
return xml;
}