public ApiPreprocessingContext process(Object object) throws ApiErrorsException {
		if (result != null) {
			throw new IllegalStateException("This preprocessing context has already been used; create another one.");
		}

		result = preprocessor.process(object, this);
		
		if (failOnErrors && apiErrorResponse.hasErrors()) {
			throw new ApiErrorsException(apiErrorResponse);
		}

		return this;
	}
public ApiPreprocessingContext process ( Object object ) throws ApiErrorsException { if ( result != null ) { throw new IllegalStateException ( "This preprocessing context has already been used; create another one." ) ; } result = preprocessor . process ( object , this ) ; if ( failOnErrors && apiErrorResponse . hasErrors ( ) ) { throw new ApiErrorsException ( apiErrorResponse ) ; } return this ; }
Runs preprocessing on the specified object.

@param object the object to preprocess
@return a result object indicating whether the preprocessing chain completed successfully and
containing the errors collected during preprocessing (note that a successful chain may
produce errors such as validation errors)
@throws ApiErrorsException if any of the preprocessors adds errors to the error collector