public Double getValue() {
   Rating rating = review.getRating();
   return (rating == null ? null : (double) rating.ordinal());
 }
 public void setValue(Double value) {
   Rating rating = value == null ? null : Rating.values()[value.intValue()];
   review.setRating(rating);
 }
 public Review addReview(Hotel hotel, ReviewDetails details) {
   System.out.println(details.getTitle());
   return new Review(hotel, 1, details);
 }