code: public JsonValidationContext addStates(Object... states) throws IllegalArgumentException {
  
  		for (Object state : states) {
  			addState(state, state.getClass());
  		}
  
  		return this;
  	}
docs: Adds the specified state objects to this validation context. Each state object will be
  identified by its concrete class (retrieved with <tt>getClass</tt>) and can be retrieved with
  {@link #getState(java.lang.Class)}.
  
  @param states the state objects to register
  @return this context
  @throws IllegalArgumentException if a state is already registered for a class of one of the
  specified states (or there are duplicates)