public ParticleSG[] getParticles(GroupSG pController) throws SAXException {
if (particles == null) {
XSParticle[] xsParticles = ((XSGroup) getXSObject()).getParticles();
particles = new ParticleSG[xsParticles.length];
for (int i = 0; i < xsParticles.length; i++) {
ParticleSGChain chain = (ParticleSGChain) pController.newParticleSG(xsParticles[i]);
ParticleSG particle = new ParticleSGImpl(chain);
particle.init();
particles[i] = particle;
}
}