attributes.put(entry.getKey(), entry.getValue());
}
}
public AttributeParticleConfig save() {
AttributeParticleConfig xml = AttributeParticleConfig.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());
}
xml.setType(type.save());
return xml;
}