/* */
/* 175 */ log.debug("Load schema: " + nsURI + "=" + url);
/* 176 */ XMLInputSource inputSource = new XMLInputSource(null, url.toExternalForm(), null);
/* */
/* 178 */ InputSource tmpSrc = resolver.resolveEntity(null, url.toExternalForm());
/* 179 */ InputStream in = tmpSrc.getByteStream() != null ? tmpSrc.getByteStream() : new ResourceURL(url).openStream();
/* 180 */ inputSource.setByteStream(in);
/* */
/* 182 */ SchemaGrammar grammar = (SchemaGrammar)loader.loadGrammar(inputSource);
/* 183 */ if (grammar == null) {
/* 184 */ throw new IllegalStateException("Cannot load grammar: " + url);