final long start = System.currentTimeMillis();
for (int i = 0; i < iterations; i++) {
final ClientSerializationStreamWriter writer = new ClientSerializationStreamWriter(serializer, "", null );
writer.prepareToWrite();
writer.writeObject(instance);
clientSerializedForm = writer.toString();
}
final long end = System.currentTimeMillis();
log(GWT, "End of timing.");