code: public <T> ApiPreprocessingContext withState(T state, Class<? extends T> stateClass) {
  		validationContext.addState(state, stateClass);
  		return this;
  	}
docs: Adds the specified state object to the validation context. It can be retrieved by passing
  the identifying class to {@link #getState(java.lang.Class)}.
  
  @param <T> the type of state
  @param state the state object
  @param stateClass the class identifying the state
  @return this context
  @throws IllegalArgumentException if a state is already registered for that class