IOException {
//TODO use 'desc' URL in any error message(s) for problem resolution.
Document doc = null;
try {
DocumentBuilderFactory factory = createDocumentBuilderFactory(true);
EntityResolverAdapter entityResolver = new EntityResolverAdapter(getURIResolver());
ErrorHandler errorHandler = new ErrorHandlerWrapper(getErrorReporter());
DocumentBuilder builder = createDocumentBuilder(factory, entityResolver, errorHandler);
doc = builder.parse(inputSource);
} catch (ParserConfigurationException e) {