throw new ValidationException("Validation factory returned a null constraint validator for the class " + validatorClass.getName() + ".");
}
//otherwise, continue validation
try {
cValidator.initialize(descriptor.getAnnotation());
} catch (ClassCastException ccex) {
throw new ConstraintDefinitionException("Could not cast constraint definition.",ccex);
} catch (Exception ex) {
throw new ValidationException("An exception occured while intializing constraint description.", ex);
}