public void addXsdImport(URI from, URI location, SourceLocation sloc) {
URI resFrom = from.resolve(location);
if (__log.isDebugEnabled())
__log.debug("Adding XSD import from " + resFrom + " location " + location);
XMLEntityResolver resolver = new WsdlFinderXMLEntityResolver(_resourceFinder,
location, new HashMap<URI,String>(), true);
try {
Map<URI, byte[]> schemas = XSUtils.captureSchema(resFrom.toString(), resolver);
InputStream xsdStream = _resourceFinder.openResource(resFrom);
byte[] data;