public void save( SchemaConfig xml )
{
xml.setNamespace( namespace );
for( Map.Entry<String, String> entry : prefixes.entrySet() )
{
MapEntryConfig mapEntry = xml.addNewPrefix();
mapEntry.setKey( entry.getKey() );
mapEntry.setValue( entry.getValue() );
}
List<ParticleConfig> particleList = new ArrayList<ParticleConfig>();
for( Particle item : particles )
particleList.add( item.save() );
xml.setParticleArray( particleList.toArray( new ParticleConfig[0] ) );