XmlSchema resolvedSchema = getParentSchema(parentSchema,attributeGroupRefName,COMPONENT_ATTRIBUTE_GROUP);
if (resolvedSchema == null) {
throw new SchemaCompilationException("can not find the attribute group reference name " +
attributeGroupRefName + " from the parent schema " + parentSchema.getTargetNamespace());
} else {
XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
(XmlSchemaAttributeGroup) resolvedSchema.getAttributeGroups().getItem(attributeGroupRefName);
if (xmlSchemaAttributeGroup != null) {
processAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder, resolvedSchema);
} else {
throw new SchemaCompilationException("Can not find an attribute group for group reference "
+ attributeGroupRefName.getLocalPart());
}
}