XSDModelGroup grp = null;
switch (pType) {
case XSDConstants.GROUP_ELEMENT:
XSDModelGroupDefinition grpDef = (XSDModelGroupDefinition) particle.getContent();
if (grpDef.isModelGroupDefinitionReference()) {
grpDef = grpDef.getResolvedModelGroupDefinition();
}
grp = grpDef.getModelGroup();
break;
case XSDConstants.CHOICE_ELEMENT:
case XSDConstants.ALL_ELEMENT: