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