JBlock (JBlock block, String jsonType, JClass javaType) { JCodeModel model = javaType.owner(); JConditional _if = block._if(createTokenCondition(model, jsonType)); _if._then().assign(JExpr.ref(JExpr.ref("result"), "value"), createReadValueAs(javaType)); return _if._else(); }