public static String getString(final String msg, final String defaultValue) {
        ConsoleMenu.print(msg + (defaultValue != null ? " (default:" + defaultValue + ") " : ""));

        BufferedReader bufReader = null;
        String opt = null;

        try {
            bufReader = new BufferedReader(new InputStreamReader(System.in));
            opt = bufReader.readLine();
        } catch (final IOException ex) {
            ex.printStackTrace();
            System.exit(1);
        }

        if ((opt == null || opt.length() == 0) && defaultValue != null && defaultValue.length() > 0) {
            opt = defaultValue;
        }

        return opt;
    }