} else {
ComplexContentSG ccSG = pController.getComplexContentSG();
if (ccSG.isEmpty()) {
return new EmptyElementHandlerSG(pController, pJs);
} else {
GroupSG group = ccSG.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");
}
}