ReservationData reservationInfo = reservationInfoMap.get(reservationId);
if (reservationInfo == null) {
throw new IllegalStateException();
}
ReservationSetItem reservation = xmlReservations.get(reservationId);
if (reservation == null) {
reservation = new ReservationSetItem();
xmlReservations.put(reservationId, reservation);
response.reservations.add(reservation);
reservation.reservationId = toEc2ReservationId(reservationInfo.getId());
reservation.ownerId = toEc2Owner(reservationInfo.getProjectId());