public static void newAccounting(Accountings accountings) {
        String name = JOptionPane.showInputDialog(null, "Enter a name");
        try {
            Accounting accounting = new Accounting();
            accounting.getBalances().addDefaultBalances();
            accounting.setName(name);
            accountings.addBusinessObject(accounting);
            accountings.setCurrentObject(accounting);
            setAccounting(accounting);
        } catch (DuplicateNameException e) {
            ActionUtils.showErrorMessage(ActionUtils.ACCOUNTING_DUPLICATE_NAME);
        } catch (EmptyNameException e) {
            ActionUtils.showErrorMessage(ActionUtils.ACCOUNTING_NAME_EMPTY);
        }
    }