protected void buildComplexTypeIndex() {
complexTypeIndex = new HashMap();
for (int i = 0; i < schemas.length; i++) {
XSDSchema schema = schemas[i];
for (Iterator t = schema.getTypeDefinitions().iterator(); t.hasNext();) {
XSDTypeDefinition type = (XSDTypeDefinition) t.next();
if (type instanceof XSDComplexTypeDefinition) {
QName qName = new QName(type.getTargetNamespace(), type.getName());
complexTypeIndex.put(qName, type);