code: public int createRating(Reference reference, RatingType type, int value) {
  		return getResourceFactory()
  				.getApiResource("/rating/" + reference.toURLFragment() + type)
  				.entity(Collections.singletonMap("value", value),
  						MediaType.APPLICATION_JSON_TYPE)
  				.post(RatingCreateResponse.class).getId();
  	}
docs: Add a new rating of the user to the object. The rating can be one of many
  different types. For more details see the area.
  
  Ratings can be changed by posting a new rating, and deleted by doing a
  DELETE.
  
  @param reference
  The reference to the object the rating should be created on
  @param type
  The type of the rating
  @param value
  The value for the rating
  @return The id of the newly created rating
  
  @see RatingValue