XSAttributable[] xsAttributes = xsType.getComplexType().getAttributes();
List attributeList = new ArrayList();
for (int i = 0; i < xsAttributes.length; i++) {
if (xsAttributes[i] instanceof XSAttribute) {
XSAttribute attr = (XSAttribute) xsAttributes[i];
AttributeSGChain attrChain = (AttributeSGChain) pController.newAttributeSG(attr);
AttributeSG attrSG = new AttributeSGImpl(attrChain);
attrSG.init();
attributeList.add(attrSG);
} else if (xsAttributes[i] instanceof XSWildcard) {
throw new SAXParseException("Wildcards are not yet supported", ((XSWildcard) xsAttributes[i]).getLocator());