There is this sub-optimal section in the ValueBuilderWithPrototype.java
// @TODO there is probably a more efficient way to do this
ValueSerialization valueSerialization = currentModule.valueSerialization();
String serialized = valueSerialization.serialize( prototype );
value = valueSerialization.deserialize( valueModel.valueType(), serialized);
And this approach is of course a performance hog, as well as introducing a
strange problem about initializing ValueComposites with Associations.
And it should be required to clone via serialization, but I understand that
the effort might be substantial... Any takers??
Cheers
--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java