code: private Document getDocument() {
          logger.entering();
          DOMDocumentFactory domFactory = new DOMDocumentFactory();
          SAXReader reader = new SAXReader(domFactory);
          Document doc;
  
          try {
              doc = reader.read(resource.getInputStream());
          } catch (DocumentException excp) {
              logger.exiting(excp.getMessage());
              throw new DataProviderException("Error reading XML data.", excp);
          }
  
          logger.exiting(doc.asXML());
          return doc;
      }
docs: Loads the XML data from the {@link XmlFileSystemResource} into a {@link org.dom4j.Document}.
  
  @return A Document object.