public static Object getStaticFieldValue(Class<?> clazz, String name) {
        Field field = ReflectionUtils.findField(clazz, name);
        if (field != null) {
            ReflectionUtils.makeAccessible(field);
            try {
                return field.get(clazz);
            } catch (IllegalAccessException ignored) {}
        }
        return null;
    }
public static Object getStaticFieldValue ( Class < ? > clazz , String name ) { Field field = ReflectionUtils . findField ( clazz , name ) ; if ( field != null ) { ReflectionUtils . makeAccessible ( field ) ; try { return field . get ( clazz ) ; } catch ( IllegalAccessException ignored ) { } } return null ; }
<p>Get a static field value.</p>

@param clazz The class to check for static property
@param name The field name
@return The value if there is one, or null if unset OR there is no such field