@Override public void load(XMLResource resource, InputStream inputStream, Map<?, ?> options) throws IOException { try { super.load(resource, inputStream, options); } catch (Exception e) { DiagnosticWrappedException error = new DiagnosticWrappedException(e); resource.getErrors().add(error); } } };
inputSource.setEncoding(resource.getEncoding()); load(resource, inputSource, options); return;
inputSource.setEncoding(resource.getEncoding()); load(resource, inputSource, options); return;