+ encodedResource.getResource(), e);
}
Document document = null;
DefaultDocumentLoader loader = new DefaultDocumentLoader();
try {
InputSource inputSource = new InputSource(inputStream);
inputSource.setEncoding(encodedResource.getEncoding());
document = loader.loadDocument(inputSource, null, new SimpleSaxErrorHandler(logger),
XmlBeanDefinitionReader.VALIDATION_NONE, false);
}
catch (Exception e) {
throw new ConfigurationException("Unable to load XML module definition document from resource "
+ encodedResource.getResource(), e);