code: public static Object loadXMLInfo(String filename, String clinvarVersion) throws JAXBException, IOException {
          Object obj = null;
          JAXBContext jaxbContext = JAXBContext.newInstance(clinvarVersion);
          Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
          // Reading GZip input stream
          InputStream inputStream;
          if (filename.endsWith(".gz")) {
              inputStream = new GZIPInputStream(new FileInputStream(new File(filename)));
          }else {
              inputStream = Files.newInputStream(Paths.get(filename));
          }
          obj = unmarshaller.unmarshal(inputStream);
          return obj;
      }
docs: Checks if XML info path exists and loads it
  
  @throws javax.xml.bind.JAXBException
  @throws java.io.IOException