}
XSAttributeGroup attributeGroup = pObject.getXSSchema().getAttributeGroup(ref);
if (attributeGroup == null) {
throw new LocSAXException("Unknown attribute group name: " + ref, pObject.getLocator());
}
attributeGroup.validate();
XSAttributable[] agAttributes = attributeGroup.getAttributes();
for (int j = 0; j < agAttributes.length; j++) {
attributes.add(agAttributes[j]);
}
} else if (o instanceof XsTAttributeGroup) {