code: public GitkitUser updateUser(GitkitUser user)
        throws GitkitClientException, GitkitServerException {
      try {
        return jsonToUser(rpcHelper.updateAccount(user));
      } catch (JSONException e) {
        throw new GitkitServerException(e);
      }
    }
docs: Updates a user info at Gitkit server.
  
  @param user user info to be updated.
  @return the updated user info
  @throws GitkitClientException for invalid request
  @throws GitkitServerException for server error