public static void setValue(Field f, Object o, Object v) {
        try {
            makeAccessible(f);
            f.set(o, v);
        } catch (ReflectiveOperationException ex) {
            throw new RuntimeException(ex);
        }
    }