if (ccSG.isEmpty()) {
return new EmptyElementHandlerSG(pController, pJs);
} 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 {