public List exchangeEvents(User user, List clientEvents)
throws ChatServiceException {
if (user == null) {
// RuntimeExceptions are not serialized by default
throw new ChatServiceException("User cannot be null");
}
UserInfo userInfo = findUserInfoForUser(user);
if (userInfo == null) {
userInfo = createUser(user);