private static void processRequest() {

        try {
            MortgageFactory mFactory = new MortgageFactory();

            Mortgage mortgage = mFactory.getMortgageCalculator(MortgageFactory.MortgageType.FIXED_RATE,
                    loanAmount, rate, duration);
            if (mortgage != null) {

                if (mortgage.calculateMortgage()) {
                    RenderResults renderer = PaymentDetailFactory.makePaymentRenderer(PaymentDetailFactory.rendererType.CONSOLE);

                    if (renderer != null) {
                        mortgage.printMonthlyPayment(renderer);
                        mortgage.printPaymentDetails(renderer);
                    } else {
                        System.out.println("Sorry, there was an error in rendering this request.");
                    }
                } else {
                    System.out.println("Sorry, there was an error in processing this request.");
                }
            } else {
                System.out.println("Sorry, there was an error in processing this request.");
            }

        } catch (Exception e) {
            System.out.println("Unable to process the values entered. Terminating program.\n");
            System.out.println(e.getMessage());
        }

    }