code: public void validateAndThrowException(String correlationId, Object value, boolean strict)
  			throws ValidationException {
  		List<ValidationResult> results = validate(value);
  		ValidationException.throwExceptionIfNeeded(correlationId, results, strict);
  	}
docs: Validates the given value and returns a ValidationException if errors were
  found.
  
  @param correlationId (optional) transaction id to trace execution through
  call chain.
  @param value         a value to be validated.
  @param strict        true to treat warnings as errors.
  @throws ValidationException when errors occured in validation