public static void validate(HppRequest hppRequest) {
		Set<ConstraintViolation<HppRequest>> constraintViolations = validator.validate(hppRequest);

		if (constraintViolations.size() > 0) {
			List<String> validationMessages = new ArrayList<String>();
			Iterator<ConstraintViolation<HppRequest>> i = constraintViolations.iterator();

			while (i.hasNext()) {
				ConstraintViolation<HppRequest> constraitViolation = i.next();
				validationMessages.add(constraitViolation.getMessage());
			}

			LOGGER.info("HppRequest failed validation with the following errors {}", validationMessages);
			throw new RealexValidationException("HppRequest failed validation", validationMessages);
		}
	}
public static void validate ( HppRequest hppRequest ) { Set < ConstraintViolation < HppRequest > > constraintViolations = validator . validate ( hppRequest ) ; if ( constraintViolations . size ( ) > 0 ) { List < String > validationMessages = new ArrayList < String > ( ) ; Iterator < ConstraintViolation < HppRequest > > i = constraintViolations . iterator ( ) ; while ( i . hasNext ( ) ) { ConstraintViolation < HppRequest > constraitViolation = i . next ( ) ; validationMessages . add ( constraitViolation . getMessage ( ) ) ; } LOGGER . info ( "HppRequest failed validation with the following errors {}" , validationMessages ) ; throw new RealexValidationException ( "HppRequest failed validation" , validationMessages ) ; } }
Method validates HPP request object using JSR-303 bean validation.

@param hppRequest