private String readPassword(boolean askTwice) {
        sysOut.println(bundle.getString("password_in_plaintext"));
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            while (true) {
                sysOut.print(bundle.getString("password") + ": ");
                String first = br.readLine();
                if (askTwice == false) {
                    return first;
                }
                sysOut.print(bundle.getString("password_repeat") + ": ");
                String second = br.readLine();
                if (first.equals(second)) {
                    return first;
                } else {
                    displayError(bundle.getString("error"),
                            bundle.getString("passwords_do_not_match"));
                }
            }
        } catch (IOException ioEx) {
            displayError(bundle.getString("err_password_read"),
                    ioEx.getLocalizedMessage());
        }
        return null;
    }