code: public void add(int ds, Object value) throws SerializationException, InvalidDataSetException {
  		if (value == null) {
  			return;
  		}
  
  		DataSetInfo dsi = dsiFactory.create(ds);
  		byte[] data = dsi.getSerializer().serialize(value, activeSerializationContext);
  		DataSet dataSet = new DefaultDataSet(dsi, data);
  		dataSets.add(dataSet);
  	}
docs: Adds a data set to IIM file.
  
  @param ds
  data set id (see constants in IIM class)
  @param value
  data set value. Null values are silently ignored.
  @throws SerializationException
  if value can't be serialized by data set's serializer
  @throws InvalidDataSetException
  if data set isn't defined