*
* @return Returns the method with the specified property or {@code null} if it does not exist.
*/
public static Method getMethodFromPropertyName(Class<?> clazz, String methodName) {
Method method;
GetMethodFromPropertyName action = GetMethodFromPropertyName.action( clazz, methodName );
if ( System.getSecurityManager() != null ) {
method = AccessController.doPrivileged( action );
}
else {
method = action.run();
}
return method;
}