code: protected PendingSlotRequest findMatchingRequest(ResourceProfile slotResourceProfile) {
  
  		for (PendingSlotRequest pendingSlotRequest : pendingSlotRequests.values()) {
  			if (!pendingSlotRequest.isAssigned() && slotResourceProfile.isMatching(pendingSlotRequest.getResourceProfile())) {
  				return pendingSlotRequest;
  			}
  		}
  
  		return null;
  	}
docs: Finds a matching slot request for a given resource profile. If there is no such request,
  the method returns null.
  
  <p>Note: If you want to change the behaviour of the slot manager wrt slot allocation and
  request fulfillment, then you should override this method.
  
  @param slotResourceProfile defining the resources of an available slot
  @return A matching slot request which can be deployed in a slot with the given resource
  profile. Null if there is no such slot request pending.