schemaTypeMap.put(next.getType(), next);
}
for(XmlSchemaType next:overrideSchemaTypes.getXmlSchemaType()) {
//if there's already a schemaType for this type, override it's value
XmlSchemaType existingType = schemaTypeMap.get(next.getType());
if(existingType != null) {
existingType.setName(next.getName());
existingType.setNamespace(next.getNamespace());
} else {
xmlSchemaTypes.getXmlSchemaType().add(next);
}
}
}