public static void main(String[] args) throws Exception {

    ArrayList<File> lemsFiles = new ArrayList<File>();

    lemsFiles.add(new File("../NeuroML2/LEMSexamples/LEMS_NML2_Ex9_FN.xml"));
    lemsFiles.add(new File("../git/VERTEXShowcase/test_LEMS/Adex2pop_1comp_test2.xml"));
    lemsFiles.add(
        new File(
            "../neuroConstruct/osb/cerebral_cortex/networks/IzhikevichModel/NeuroML2/LEMS_SmallNetwork.xml"));

    for (File lemsFile : lemsFiles) {

      Lems lems = Utils.readLemsNeuroMLFile(lemsFile).getLems();
      System.out.println("Loaded: " + lemsFile.getAbsolutePath());

      VertexWriter nw =
          new VertexWriter(
              lems, lemsFile.getParentFile(), lemsFile.getName().replaceAll(".xml", "_run.m"));
      List<File> files = nw.convert();
      for (File f : files) {
        System.out.println("Have created: " + f.getAbsolutePath());
      }
    }
  }
 /** @param nmlDocument */
 public InfoWriter(NeuroMLDocument nmlDocument)
     throws ModelFeatureSupportException, LEMSException, NeuroMLException {
   super(Utils.convertNeuroMLToSim(nmlDocument).getLems(), nmlDocument, Format.INFORMATION);
   // sli.checkConversionSupported(format, Utils.convertNeuroMLToSim(nmlDocument).getLems());
 }