for (Method method : methods) {
Class<? extends Annotation> clazz;
try {
clazz = (Class<? extends Annotation>) Class.forName(clazzName);
} catch (ClassNotFoundException e1) {
throw new JibeRuntimeException("Annotation class could not be found: " + clazzName);
}
Annotation annotation = method.getAnnotation(clazz);
if (annotation != null) {
String id = null;
try {
id = (String) annotation.getClass().getMethod("value").invoke(annotation);
} catch (Exception e) {
throw new JibeRuntimeException("Annotation does not have value property: "
+ annotation.annotationType().getName());
}
if (StringUtils.isEmpty(id)) {
id = String.format("%1$s.%2$s", beanName, method.getName());