if (pController.hasSimpleContent()) {
return new SimpleContentHandlerSG(pController, pJs);
} else {
ComplexContentSG ccSG = pController.getComplexContentSG();
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()) {