code: public void onResourceReleased(final ResourceReleaseEvent resourceReleaseEvent) {
      String id = resourceReleaseEvent.getIdentifier();
      LOG.log(Level.FINEST, "Got ResourceReleasedEvent for Id: {0} in AzureBatchResourceManager", id);
  
      ResourceRequestEvent removedEvent = this.containerRequests.remove(id);
      if (removedEvent == null) {
        LOG.log(Level.WARNING,
            "Ignoring attempt to remove non-existent containerRequest for Id: {0} in AzureBatchResourceManager", id);
      } else {
        int currentContainerCount = this.containerCount.decrementAndGet();
        if (currentContainerCount <= 0) {
          this.azureBatchTaskStatusAlarmHandler.disableAlarm();
        }
      }
  
      this.evaluatorShimManager.onResourceReleased(resourceReleaseEvent);
    }
docs: This method is invoked when a {@link ResourceReleaseEvent} is triggered.
  
  @param resourceReleaseEvent the resource release event.