* fill it, and then assign it to the destination using the setter.
*/
MultiOccurrenceVariableRef newDest = new MultiOccurrenceVariableRef(d.type(), "new_" + d.name());
if (d.isAssignable()) {
out.append(statement(newDest.declare(d.newInstance(source.size()))));
} else {
out.append(statement(newDest.declare(""+d)));
out.append(statement("%s.clear()", newDest));
}