@GET
    @Path("/bet")
    public RaceBettingResult placeBet(@PathParam("raceNumber") Long raceNumber, @QueryParam("raceId") String raceId, @QueryParam("amountCents") Integer amountCents) {

        logAuditForBetRequest(raceNumber, raceId, amountCents);

        if (raceNumber == null) {
            throw new WebApplicationException(new IllegalArgumentException("You did not specify a raceNumber"),400);
        }
        if (raceId == null) {
            throw new WebApplicationException(new IllegalArgumentException("You did not specify a raceId"),400);
        }
        if (amountCents == null) {
            throw new WebApplicationException(new IllegalArgumentException("You did not specify a amountCents"),400);
        }
        if (amountCents < 10) {
            throw new WebApplicationException(new IllegalArgumentException("Please specify a amountCents greater than 10 cents"),400);
        }

        RaceBean race = data.get(raceNumber);
        if (race == null) {
            throw new WebApplicationException(new IllegalArgumentException("could not find race " + raceNumber),400);
        }
        logAuditForBetResponse(raceNumber, raceId, amountCents);

        return new RaceBettingResult(race);



    }