Method parameter =
determineAnnotationParameterMethod(annotation, parameterName);
parameter.setAccessible(true);
return parameter.invoke(annotation, new Object[] {});
} catch (IllegalArgumentException e) {
throw new ValidatorAnnotationException(
Cause.BAD_PARAMETER, annotation, parameterName, e);
} catch (IllegalAccessException e) {
throw new ValidatorAnnotationException(
Cause.BAD_PARAMETER, annotation, parameterName, e);
} catch (InvocationTargetException e) {
throw new ValidatorAnnotationException(
Cause.BAD_PARAMETER, annotation, parameterName, e);
}
}