Class c = obj.getClass(); Field f = c.getDeclaredField(name); f.setAccessible(true);
Object value = f.get(obj); f.set(obj, value);