Util.writeReadValueAndHasValue(scope, fieldName, "underlying", valueRef, hasValueRef);
scope.startLine("if (" + hasValueRef + ") {\n");
scope.indentRight();
if (quickParser.javaCodeThrowsException()) {
scope.startLine("try {\n");
scope.indentRight();
quickParser.writeParseQuickCode(scope, valueRef, "r1");
scope.startLine("result = r1;\n");
scope.indentLeft();
scope.startLine("} catch (" + Util.BASE_PACKAGE + ".JsonProtocolParseException e) {\n");
scope.startLine(" throw new " + Util.BASE_PACKAGE + ".JsonProtocolParseException(" +