docs: @Override
  	public void connectToResourceManager(@Nonnull ResourceManagerGateway resourceManagerGateway) {
  		this.resourceManagerGateway = checkNotNull(resourceManagerGateway);
  
  		// work on all slots waiting for this connection
  		for (PendingRequest pendingRequest : waitingForResourceManager.values()) {
  			requestSlotFromResourceManager(resourceManagerGateway, pendingRequest);
  		}
  
  		// all sent off
  		waitingForResourceManager.clear();
  	}