} else if (conference.getSeatsAvailable() <= 0) {
return new WrappedBoolean (false, "No seats available");
} else {
// All looks good, go ahead and book the seat
profile.addToConferenceKeysToAttend(websafeConferenceKey);
conference.bookSeats(1);
// Save the Conference and Profile entities
ofy().save().entities(profile, conference).now();
// We are booked!
return new WrappedBoolean(true, "Registration successful");