docs: private void assertClientMayUpdate(int hour) {
          OAuthContext oauth = getOAuthContext();
          List<OAuthPermission> perms = oauth.getPermissions();
          boolean checkPassed = false;
          for (OAuthPermission perm : perms) {
              if (perm.getPermission().startsWith(OAuthConstants.UPDATE_CALENDAR_SCOPE)) {
                  int authorizedHour = Integer.valueOf(perm.getPermission()
                      .substring(OAuthConstants.UPDATE_CALENDAR_SCOPE.length()));
                  if (authorizedHour == 24 || authorizedHour == hour) {
                      checkPassed = true;
                  }
              }
          }
          if (!checkPassed) {
              throw new WebApplicationException(403);
          }
      }