public static InputTableModel getModel(Automaton automaton, boolean multipleFile) {        
		InputTableModel model = (InputTableModel) INPUTS_TO_MODELS
				.get(new Integer(inputsForMachine(automaton)));
		if (model != null && (model.isMultiple == multipleFile)) {
			model = new InputTableModel(model);
			// Clear out the results column.
			for (int i = 0; i < (model.getRowCount() - 1); i++)
				model.setResult(i, "", null, null, 0);
		}
        else {
            int add = 0;
            if(multipleFile) add = 1;
			model = new InputTableModel(automaton, add);
		}
		model.addTableModelListener(LISTENER);
        if(multipleFile){
            model.isMultiple = true;
            
        }
		return model;
	}