code: @Override
    public void grantResource(String handle, List<ResourceGrant> granted) {
      String msg = "Received " + granted.size() + " new grants ";
      if (LOG.isDebugEnabled()) {
        LOG.debug(msg + granted.toString());
      } else {
        LOG.info(msg);
      }
      
      // This is unnecessary, but nice error messages look better than NPEs
      if (resourceTracker != null) {
        resourceTracker.addNewGrants(granted);
      } else {
        LOG.error("Grant received but ResourceTracker was uninitialized.");
      }
    }
docs: ////////////////////////////////////////////////////////////////////////////