loginController.setErrorMessage("Please login to make comments.");
}else {
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
Date date = new Date();
String currentDate = dateFormat.format(date);
Review review = new Review();
review.setPatron(patron);
review.setBook(book);
review.setCommentDate(currentDate);
review.setComment(comments);
review.setRating(rating);
book.getReviews().add(review);
loginController.getPatronReviews().add(review);
bookService.addBook(book);
//bookService.addReview(review);