namespaces.add(d.getPrefix(), d.getNamespaceURI().toString());
}
xsc.setNamespaceContext(namespaces);
// Plug in the selected woden URI Resolver
xsc.setSchemaResolver(new OMSchemaResolverAdapter(getURIResolver(), schemaElement));
schemaDef = xsc.read(schemaSource, null);
}
catch (XmlSchemaException e){