Adapted RatingController to be compatible with SF 2.3+ (BC BREAK)