private void nameModels(File file) {
		Model m = null;
		String ext = "mml";
		int incr_mml = 0, incr_gbl = 0;
		synchronized (componentPool) {
			for (ModelCanvas c : componentPool.getModels()) {
				if (c.isUsed()) {
					m = c.getMdContainer().getModel();
					if (m instanceof MolecularModel) {
						m.putProperty("old url", m.getProperty("url"));
						ext = "mml";
						m.putProperty("url", FileUtilities.changeExtension(file.toString(), ext, incr_mml));
						m.putProperty("filename", FileUtilities.changeExtension(FileUtilities.getFileName(file.toString()), ext, incr_mml));
						incr_mml++;
					} else if (m instanceof MesoModel) {
						m.putProperty("old url", m.getProperty("url"));
						ext = "gbl";
						m.putProperty("url", FileUtilities.changeExtension(file.toString(), ext, incr_gbl));
						m.putProperty("filename", FileUtilities.changeExtension(FileUtilities.getFileName(file.toString()), ext, incr_gbl));
						incr_gbl++;
					}
				}
			}
		}
	}