public static boolean overwriteFileDialog() {
        log.debug("Starting overwrite dialog");
        System.out.println(InterfaceMessages.OVERWRITE_FILE);
        log.debug("Initializing buffered reader.");
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        boolean result = false;
        log.debug("Starting endless cycle");
        while (true) {
            try {
                log.debug("Reading answer from user.");
                String answer = br.readLine();
                log.debug("Received from user: " + answer);
                if (answer.equalsIgnoreCase("n")) {
                    break;
                } else if (answer.equalsIgnoreCase("y")) {
                    result = true;
                    break;
                }
            } catch (IOException e) {
                log.error("IOError reading user's choice.");
            }
        }
        if (log.isDebugEnabled()) {
            log.debug("Returning: " + result);
        }

        return result;
    }