public static Boolean getConfirmation()
    {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        Boolean bConfirmation = false;
        Boolean bValidAnswer = false;
        String strInput;

        try
        {
            System.out.println("");
            System.out.println("Are you sure? (Enter 'y' or 'yes' to confirm, 'n' or 'no' to abort)");

            do
            {
                strInput = bufferedReader.readLine().trim().toLowerCase();
                if (strInput.equals("yes") || strInput.equals("no") || strInput.equals("y") || strInput.equals("n"))
                {
                    bValidAnswer = true;
                }
            }
            while (!bValidAnswer);

            if (strInput.equals("yes") || strInput.equals("y"))
            {
                bConfirmation = true;
            }
        }
        catch (Exception exception)
        {
            // Do nothing
        }

        return bConfirmation;
    }