code: public static String getExportFormat(RepositoryInfo repoinfo)
              throws Exception {
          String sourceExportFormat = null;
          StringTokenizer stoken =
                  new StringTokenizer(repoinfo.getRepositoryVersion(), ".");
          int majorVersion = new Integer(stoken.nextToken()).intValue();
          if (majorVersion < 2) {
              sourceExportFormat = METS_EXT1_0_LEGACY;
          } else {
              sourceExportFormat = repoinfo.getDefaultExportFormat();
          }
  
          return sourceExportFormat;
      }
docs: Determine the default export format of the source repository. For
  backward compatibility: with pre-2.0 repositories assume the
  "metslikefedora1" format