public ConsoleCurrencyDialog() {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        while (currency == null) {
            System.out.println("Insert currency:");
            String readCurrency = " ";
            try {
                readCurrency = reader.readLine();
            }
            catch (IOException ex) {
                Logger.getLogger(ConsoleCurrencyDialog.class.getName()).log(Level.SEVERE, null, ex);
            }
            this.currency = CurrencySet.getInstance().search(readCurrency);
        }

    }