class ValidationResult {

	private <T> void add(Set<ConstraintViolation<T>> violations) {
		if(CollectionUtils.isEmpty(violations)) {
			return;
		}
		
		for(ConstraintViolation<T> c : violations) {
			ValidationError.Model e = new ValidationError.Model();
			e.setCode(c.getPropertyPath().toString());
			e.setModelAlias(null);
			e.setMsg(c.getMessage());
			
			this.template.add(e);
		}
	}

	public  ValidationResult();
	public <T> ValidationResult(Set<ConstraintViolation<T>> violations);

}