boolean useHack = createEditor2DocDetached.getValue();
// EDITOR1: Pojo -> editor mode
double start = Duration.currentTimeMillis();
doc1 = new ContentDocument(testEditorRegistries, op, schema);
double middle = Duration.currentTimeMillis();
editor1.setContent(doc1);
double end = Duration.currentTimeMillis();
logger.log(AbstractLogger.Level.TRACE, "Set content1 took: " + (end - start)
+ " (Pojo creation: " + (middle - start) + ", rendering: " + (end - middle));
// EDITOR2: Build document in edit mode
start = Duration.currentTimeMillis();
doc2 = new ContentDocument(schema);
doc2.setRegistries(testEditorRegistries);
editor2.setContent(doc2);
// HACK to ensure it's created non-attached to dom, to ensure fair speed comparisons
double start2, end2;