resolver.setBaseURI(xsdUrl.toString());
XSImplementation impl = getXSImplementation();
XSLoader schemaLoader = impl.createXSLoader(null);
setResourceResolver(schemaLoader, resolver);
setDOMErrorHandler(schemaLoader);
XSModel model = schemaLoader.loadURI(xsdUrl.toString());
XSNamedMap types = model.getComponents(XSConstants.TYPE_DEFINITION);
for(int i = 0; i < types.getLength(); ++i)
{
XSTypeDefinition type = (XSTypeDefinition)types.item(i);
if(!Constants.NS_XML_SCHEMA.equals(type.getNamespace()))
{