private int getPercentageDiscount(int customerRelationDiscount, int customerLongevityDiscount) {
        int pecentageDiscount = 0;

        String discountCalculationStrategy = ConfigurationPropertyReader.getInstance().getProperty(
                ConfigurationConstants.PERCENTAGE_DISCOUNT_CALCULATION_STRATEGY);
        discountCalculationStrategy = StringUtils.trim(discountCalculationStrategy);

        if (!StringUtils.isEmpty(discountCalculationStrategy)) {
            if (discountCalculationStrategy.equalsIgnoreCase("MAX")) {
                log.info("Percent discount calculation strategy used = MAX");
                pecentageDiscount = customerRelationDiscount >= customerLongevityDiscount ? customerRelationDiscount : customerLongevityDiscount;
            } else {
                log.info("Percent discount calculation strategy used = MIN");
                pecentageDiscount = customerRelationDiscount <= customerLongevityDiscount ? customerRelationDiscount : customerLongevityDiscount;
            }
        }

        return pecentageDiscount;
    }