final DocumentWalker document = new DocumentWalker();
document.setEntityResolver(new BeanFactoryDtdEntityResolver());
document.setErrorHandler(new RethrowSaxExceptionsErrorHandler());
document.setGenerator(this);
document.process(fileName);
context.unbranch();
return document;
}