code: public void addField(final String name, final Object value) {
          if (value == null) {
              this.fields.add(new Field(name, null, null));
          } else {
              this.fields.add(new Field(name, value.toString(), value.getClass().getName()));
          }
      }
docs: Adds the field.
  
  @param name
  the name
  @param value
  the value