@Override
    public void confirmQuotes(String clientName) throws ReservationException {
        Set<Reservation> newReservations = new HashSet<Reservation>();
        try {
            for (Quote quote : this.quotes) {
                CarRentalCompany company = RentalStore.getRentals().get(quote.getRentalCompany());
                if (clientName.equals(quote.getCarRenter())) {
                    newReservations.add(company.confirmQuote(quote));
                }
            }
        } catch (ReservationException e) {
            for (Reservation reservation : newReservations) {
                CarRentalCompany company = RentalStore.getRentals().get(reservation.getRentalCompany());
                company.cancelReservation(reservation);
            }
            throw e;
        }
    }