class ConfigurationValidator {

	public void validate(T clazz) throws InitializationException {
		ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();
		Validator validator = validatorFactory.getValidator();
		Set<ConstraintViolation<T>> violations = validator.validate(clazz);
		for (ConstraintViolation<T> violation : violations) {
			throw new InitializationException(getMessage(violation));
		}
	}

}