code: public void serializePrimitive(S rec, String fieldName, boolean value) {
          serializePrimitive(rec, fieldName, Boolean.valueOf(value));
      }
docs: Can be overridden to avoid boxing an int where appropriate