docs: @ResourceMapping("saveRating")
      public void saveRating(
              ResourceRequest request,
              ResourceResponse response,
              PortletRequest portletRequest,
              @RequestParam String portletFName,
              @RequestParam String rating,
              @RequestParam(required = false) String review) {
  
          Validate.notNull(rating, "Please supply a rating - should not be null");
          Validate.notNull(portletFName, "Please supply a portlet to rate - should not be null");
  
          // Make certain reviews are permitted before trying to save one
          final PortletPreferences prefs = request.getPreferences();
          final String enableReviewsPreferenceValue =
                  prefs.getValue(ENABLE_REVIEWS_PREFERENCE, ENABLE_REVIEWS_DEFAULT);
          if (!Boolean.valueOf(enableReviewsPreferenceValue)) {
              // Clear the parameter if sent...
              review = null;
          }
  
          marketplaceRatingDAO.createOrUpdateRating(
                  Integer.parseInt(rating),
                  portletRequest.getRemoteUser(),
                  review,
                  portletDefinitionDao.getPortletDefinitionByFname(portletFName));
      }