xml.setAttributeArray(particleList.toArray(new ParticleConfig[0]));
xml.setContent(content.save());
}
public TypeReferenceConfig save() {
TypeReferenceConfig xml = TypeReferenceConfig.Factory.newInstance();
xml.setReference(new QName(schema.getNamespace(), name));
return xml;
}