public static void setStaticFinalField(Field field, Object value) {
        FieldAccessor accessor = accessors.get(field);
        if (accessor == null) {
            try {
                field.setAccessible(true);
                int modifiers = MODIFIERS_FIELD.getInt(field);
                modifiers &= ~Modifier.FINAL;
                MODIFIERS_FIELD.setInt(field, modifiers);
                accessor = FACTORY.newFieldAccessor(field, false);
                accessors.put(field, accessor);
            } catch (Exception e) {
                throw new ReflectException("Couldn't set static final field",
                        e);
            }
        }

        try {
            accessor.set(null, value);
        } catch (IllegalAccessException e) {
            throw new ReflectException(e);
        }
    }