DocumentWriter writer = newDocument(newId);
writer.setPrimaryType("nt:unstructured");
writer.setParent(generatedOutId);
writer.addProperty("prop1", "value1");
writer.addProperty("prop2", "value2");
newDocs.add(new DocInfo(writer.document(), newId, newPath));
DocumentReader reader = readDocument(writer.document());
changes.nodeCreated(newId, documentId, newPath, JcrNtLexicon.UNSTRUCTURED, Collections.<Name>emptySet(),
reader.getProperties(), isQueryable());
// And some children ...