final CollectionFacet collectionFacet = field.getFacet(CollectionFacet.class);
for (final ObjectAdapter element : collectionFacet.iterable(collection)) {
final StringBuffer insert = new StringBuffer(sql);
insert.append(values(connector, element));
final SerialNumberVersion version = new SerialNumberVersion(0, "", new Date());
insert.append(versionMapping.insertValues(connector, version));
insert.append(") ");
connector.insert(insert.toString());
element.setOptimisticLock(version);