code: public void setProperty(String name, String value, int propertyIndex) {
          additionalProperties[propertyIndex].setName(name);
          additionalProperties[propertyIndex].setValue(value);
      }
docs: Sets the property, at the given index, to the given name, and value.
  
  @param name The property name
  @param value the property value
  @param propertyIndex the property that is to be set or written over.