/**
   * Parse a the files of a Mmmax2 corpus enhanced with Salt information and builds an object
   * accordingly
   *
   * @param path The path of the corpus
   * @return a SaltExtendedCorpus representing the corpus parsed
   */
  public SaltExtendedCorpus getCorpus(String path)
      throws SAXException, IOException, MMAX2WrapperException {
    if (path == null) throw new SaltExtendedMMAX2WrapperException("Path to corpus was not found.");
    Corpus baseCorpus = super.getCorpus(path);
    String saltInfoPath = SaltExtendedMmax2Infos.SALT_INFO_FOLDER;

    SaltExtendedCorpus corpus =
        newCorpus(
            baseCorpus.getCorpusPath(),
            baseCorpus.getBaseDataPath(),
            baseCorpus.getMarkablesPath(),
            baseCorpus.getSchemesPath(),
            baseCorpus.getStylesPath(),
            baseCorpus.getCustomizationsPath(),
            saltInfoPath);
    for (Scheme scheme : baseCorpus.getSchemes()) {
      corpus.addScheme(scheme);
    }
    return corpus;
  }