*/
@GuardedBy( "lock" )
protected ChangeSet persistChanges( Iterable<NodeKey> changedNodesInOrder,
WorkspaceCache persistedCache ) {
// Compute the save meta-info ...
ExecutionContext context = context();
String userId = context.getSecurityContext().getUserName();
Map<String, String> userData = context.getData();
final boolean acquireLock = false; // we already pre-locked all of the existing documents that we'll edit ...
DateTime timestamp = context.getValueFactories().getDateFactory().create();
String workspaceName = persistedCache.getWorkspaceName();
String repositoryKey = persistedCache.getRepositoryKey();
RecordingChanges changes = new RecordingChanges(context.getId(), context.getProcessId(), repositoryKey, workspaceName,
sessionContext().journalId());
// Get the documentStore ...
DocumentStore documentStore = persistedCache.documentStore();
DocumentTranslator translator = persistedCache.translator();