code: private void handleRevokedGrants(
        String nodeName, Set<ClusterNode.GrantId> grantsToRevoke) {
      for (ClusterNode.GrantId grantId: grantsToRevoke) {
        String sessionHandle = grantId.getSessionId();
  
        try {
          sessionManager.revokeResource(sessionHandle,
              Collections.singletonList(grantId.getRequestId()));
        } catch (InvalidSessionHandle e) {
          // ignore
          LOG.warn("Found invalid session: " + sessionHandle +
                   " while timing out node: " + nodeName);
        }
      }
    }
docs: Process the grants removed from a node.
  
  @param nodeName
  The node name.
  @param grantsToRevoke
  The grants to revoke.