private function parsePostReservation(HTTPRequest $request, AnnouncementReservation $reservation)
 {
     $date = htmlspecialchars($request->postData('date'));
     $dateEnd = htmlspecialchars($request->postData('date-end'));
     $dateOption = htmlspecialchars($request->postData('date-option'));
     $announcementId = htmlspecialchars($request->postData('announcement-id'));
     $userOwnerId = htmlspecialchars($request->postData('user-owner-id'));
     $userSubscriberId = htmlspecialchars($request->postData('user-subscriber-id'));
     $contactGroupId = htmlspecialchars($request->postData('contact-group-id'));
     $price = htmlspecialchars($request->postData('price'));
     $paiementStateId = htmlspecialchars($request->postData('state-id'));
     $reservation->setAnnouncementId($announcementId);
     $reservation->setDate($date);
     if ($dateOption == 'period') {
         $reservation->setDateEnd($dateEnd);
     } else {
         $reservation->setDateEnd($date);
     }
     $reservation->setDateOption($dateOption);
     $reservation->setUserOwnerId($userOwnerId);
     $reservation->setUserSubscriberId($userSubscriberId);
     $reservation->setContactGroupId($contactGroupId);
     $reservation->setPrice($price);
     $reservation->setStateId($paiementStateId);
 }