if (pController.hasSimpleContent()) {
SimpleContentSGChain chain = (SimpleContentSGChain) pController.newSimpleContentTypeSG();
simpleContentSG = new SimpleContentSGImpl(chain);
simpleContentSG.init();
} else {
ComplexContentSGChain chain = (ComplexContentSGChain) pController.newComplexContentTypeSG();
complexContentSG = new ComplexContentSGImpl(chain);
complexContentSG.init();
}
}