do {
final int vmId = rs.getInt(1);
final String name = rs.getString(3);
final int launchIndex = rs.getInt(4);
instances.add(new IdempotentInstanceImpl(vmId, name, launchIndex));
} while(rs.next());
return new IdempotentReservationImpl(creatorId, clientToken, groupId, instances);