Refactored getAverageRating() method from Garment to utils.ApplicationUtils.class