/* */
/* 798 */ XSParticle particle = (XSParticle)particles.get(0);
/* 799 */ XSTerm term = particle.getTerm();
/* 800 */ if (term.getType() == 7)
/* */ {
/* 802 */ JBossXSModelGroup group = (JBossXSModelGroup)term;
/* 803 */ XSObjectList list = group.getParticles();
/* 804 */ ArrayList baseParticles = new ArrayList();
/* 805 */ for (int i = 0; i < list.getLength(); i++) {
/* 806 */ baseParticles.add((XSParticle)list.item(i));
/* */ }
/* 808 */ insertBaseParticle(baseParticles, name, type, targetNS);
/* */
/* 810 */ if (baseParticles.size() > list.getLength())
/* 811 */ group.setParticles(baseParticles);
/* */ }
/* */ else
/* */ {
/* 815 */ particles.add(0, getXSParticle(name, type, targetNS));
/* */ }