} else {
GroupSG group = ccSG.getRootParticle().getGroupSG();
if (group.isSequence()) {
return new SequenceHandlerSG(pController, pJs);
} else if (group.isChoice()) {
return new ChoiceHandlerSG(pController, pJs);
} else if (group.isAll()) {
return new AllHandlerSG(pController, pJs);
} else {
throw new IllegalStateException("Invalid group type");
}