BookingRS bookingRS =
apiClient.confirm(Booking.builder().withHolder("Rosetta", "Pruebas").clientReference("SDK Test").remark("***SDK***TESTING")
.addRoom(rateKey, confirmRoom)
.build());
if (bookingRS != null) {
<BUG>log.debug("BookingRS: {}", LoggingRequestInterceptor.writeJSON(bookingRS, true));
}</BUG>
if (bookingRS.getBooking() != null) {
log.info("Confirmation succedded. Canceling reservation with id {}", bookingRS.getBooking().getReference());
BookingCancellationRS bookingCancellationRS = apiClient.cancel(bookingRS.getBooking().getReference());

BookingRS bookingRS =
apiClient.confirm(Booking.builder().withHolder("Rosetta", "Pruebas").clientReference("SDK Test").remark("***SDK***TESTING")
.addRoom(rateKey, confirmRoom)
.build());
if (bookingRS != null) {
log.debug("BookingRS: {}", LoggingRequestInterceptor.writeJSON(bookingRS));
}
if (bookingRS.getBooking() != null) {
log.info("Confirmation succedded. Canceling reservation with id {}", bookingRS.getBooking().getReference());
BookingCancellationRS bookingCancellationRS = apiClient.cancel(bookingRS.getBooking().getReference());
