code: public void releaseResources(List<ResourceRequest> released)
      throws IOException {
      if (failException != null) {
        throw failException;
      }
  
      List<Integer> releasedIds = new ArrayList<Integer>();
      for (ResourceRequest req : released) {
        releasedIds.add(req.getId());
      }
      cmNotifier.addCall(
          new ClusterManagerService.releaseResource_args(sessionId, releasedIds));
    }
docs: Release the resources that are no longer used
  @param released resources to be released
  @throws IOException