class JsonHelper {

    public static <T> Update<T> update(String json, Class<T> klazz) {
        try {
            JavaType type = MAPPER.getTypeFactory().constructParametricType(Update.class, klazz);
            return MAPPER.readValue(json, type);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}