code: public static Document getDocument(File file) {
          InputStream inputStream = null;
  
          try {
              inputStream = new FileInputStream(file);
          } catch (FileNotFoundException ex) {
              throw new MjdbcRuntimeException(ex);
          }
  
          return XmlRepositoryFactory.getDocument(inputStream);
      }
docs: Reads XML file and returns it is DOM XML Document instance.
  Can be used in conjunction with {@link #addAll(org.w3c.dom.Document)}
  
  @param file file which should be read
  @return {@link Document} instance