@Override public void save(Field parent, Field field) { // FIXME: what should this actually do? if (field == null) { field = new Field(); field.setName(getId()); field.setParent(parent); } /* * Obviously this will be null... */ if (getData() != null) { PrimitiveField<String> newPrim = new StringPrimitiveField(getId(), field); newPrim.setRawValue(getData()); field.addPrimitiveField(newPrim); } }