public void save() {
		String name = JOptionPane.showInputDialog(this, "Enter a name for the table.");
        mortgage.setName(name);
        mortgage.setStartCapital(startCapital);
        try {
            mortgages.addBusinessObject(mortgage);
            dispose();
        } catch (DuplicateNameException e) {
			ActionUtils.showErrorMessage(ActionUtils.MORTGAGE_DUPLICATE_NAME);
        } catch (EmptyNameException e) {
			ActionUtils.showErrorMessage(ActionUtils.MORTGAGE_NAME_EMPTY);
        }
	}