docs: @Override
  	public RuntimeResourceDefinition validateCriteriaAndReturnResourceDefinition(String criteria) {
  		String resourceName;
  		if (criteria == null || criteria.trim().isEmpty()) {
  			throw new IllegalArgumentException("Criteria cannot be empty");
  		}
  		if (criteria.contains("?")) {
  			resourceName = criteria.substring(0, criteria.indexOf("?"));
  		} else {
  			resourceName = criteria;
  		}
  
  		return getContext().getResourceDefinition(resourceName);
  	}