The document will be entered into the database at or before transaction
commit or as a result of the flush operation.
NOTE: The persist operation always considers documents that are not yet known to
this DocumentManager as NEW. Do not pass detached documents to the persist operation.