public static Field getField(Class<?> c, String name) {
        try {
            return c.getField(name);
        } catch (NoSuchFieldException ex) {
            throw new RuntimeException(ex);
        }
    }