class FutureValidatorForCalendar implements ConstraintValidator<Past, Calendar> {

	public boolean isValid(Calendar cal, ConstraintValidatorContext constraintValidatorContext) {
		//null values are valid
		if ( cal == null ) {
			return true;
		}
		return cal.after( Calendar.getInstance() );
	}

}