code: public void releaseResource(int resourceId) {
      synchronized (lockObject) {
        ResourceRequest req = requestedResources.get(resourceId);
        removeRequestUnprotected(req);
      }
    }
docs: Release the resource that was requested