code: private void dispatchGrantedResource(
        Map<String, List<ResourceGrant>> sessionIdToGranted) {
      for (Map.Entry<String, List<ResourceGrant>> entry :
          sessionIdToGranted.entrySet()) {
        LOG.info("Assigning " + entry.getValue().size() + " " +
            type + " requests to Session: " + entry.getKey());
        try {
          Session session = sessionManager.getSession(entry.getKey());
          session.setResourceGrant(entry.getValue());
        } catch (InvalidSessionHandle e) {
          LOG.warn("Trying to add call for invalid session: " + entry.getKey());
        }
        if (LOG.isDebugEnabled()) {
          LOG.debug(Arrays.toString(entry.getValue().toArray()));
        }
        sessionNotifier.notifyGrantResource(entry.getKey(), entry.getValue());
      }
    }
docs: Informed the sessions about their newly granted resources via
  {@link SessionNotifier}.
  
  @param sessionIdToGranted Map of session ids to granted resources