// create component document using source data
ODocument componentDocument = db.newInstance(new OClassNameBuilder().type(componentClass).build());
componentAdapter.populateDocument(sourceComponent, componentDocument);
// amend component document with system-managed data
componentDocument.field(EntityAdapter.P_ID, componentId.asUniqueString());
Set<ORID> assets = ImmutableSet.of();
componentDocument.field(P_ASSETS, assets);
// store component document
componentDocument.save();