public static Object getValue(Annotation annotation, String attributeName) {
		if (annotation == null || !StringUtils.hasLength(attributeName)) {
			return null;
		}
		try {
			Method method = annotation.annotationType().getDeclaredMethod(attributeName);
			ReflectionUtils.makeAccessible(method);
			return method.invoke(annotation);
		}
		catch (Exception ex) {
			return null;
		}
	}
public static Object getValue ( Annotation annotation , String attributeName ) { if ( annotation == null || ! StringUtils . hasLength ( attributeName ) ) { return null ; } try { Method method = annotation . annotationType ( ) . getDeclaredMethod ( attributeName ) ; ReflectionUtils . makeAccessible ( method ) ; return method . invoke ( annotation ) ; } catch ( Exception ex ) { return null ; } }
Retrieve the <em>value</em> of a named attribute, given an annotation instance.
@param annotation the annotation instance from which to retrieve the value
@param attributeName the name of the attribute value to retrieve
@return the attribute value, or {@code null} if not found
@see #getValue(Annotation)