// REVISIT: model group
// Quick fix for the case that particle <all> does not have any children.
// For now we return null. In the future we might want to return model group decl.
if (left != null) {
XInt minAtt = (XInt)attrValues[XSAttributeChecker.ATTIDX_MINOCCURS];
XInt maxAtt = (XInt)attrValues[XSAttributeChecker.ATTIDX_MAXOCCURS];
Long defaultVals = (Long)attrValues[XSAttributeChecker.ATTIDX_FROMDEFAULT];
left.fMinOccurs = minAtt.intValue();
left.fMaxOccurs = maxAtt.intValue();
left = checkOccurrences(left,
SchemaSymbols.ELT_ALL,
(Element)allDecl.getParentNode(),
allContextFlags,