public void addCollection(MetModelCollection collection) {
   availableCollections.put(collection.getName(), collection);
 }
 public void createNewCollection(MetModel[] models, String name) {
   MetModelCollection newCollection = new MetModelCollection(models);
   newCollection.setName(name);
   this.availableCollections.put(name, newCollection);
 }
 public void removeCollection(MetModelCollection selected) {
   this.availableCollections.remove(selected.getName());
   this.saveAll();
 }
 public void addNewModelsToRepo(File[] sbmlFiles) {
   for (File sbml : sbmlFiles) {
     MetModel newModel = sbmlParser.parse(sbml, collectionDir); // TODO:check for redundant models
     masterCollection.addModel(newModel);
   }
 }
 public void addNewModelsToRepo(File sbml) {
   MetModel newModel =
       sbmlParser.parse(
           sbml, OpenJDKBugOverrides.getCurrentDir()); // TODO:check for redundant models
   masterCollection.addModel(newModel);
 }