code: public String process(XProperty field) {
          String fieldName = field.getName();
          return "if (in.readByte() != 0) {\n" +
                  tab("result.set" + firstLetterToUpperCase(fieldName) + "(new java.util.Date(in.readLong()));\n") +
                  "}\n";
      }
docs: todo: LocalGregorianCalendar