*/
@ApiMethod(name = "createConference", path = "conference", httpMethod = HttpMethod.POST)
public Conference createConference(final User user, final ConferenceForm conferenceForm)
throws UnauthorizedException {
if (user == null) {
throw new UnauthorizedException("Authorization required");
}
// Allocate Id first, in order to make the transaction idempotent.
Key<Profile> profileKey = Key.create(Profile.class, getUserId(user));
final Key<Conference> conferenceKey = factory().allocateId(profileKey, Conference.class);
final long conferenceId = conferenceKey.getId();