}
private ProcessComponent buildProcess(FileIndex index) throws NoSessionException,
NoPeerConnectionException {
// create a new sub-process
SequentialProcess sequential = new SequentialProcess();
// each meta document gets own context
MetaDocumentPKUpdateContext metaContext = new MetaDocumentPKUpdateContext(
context.consumeOldProtectionKeys(), context.consumeNewProtectionKeys(),
index.getFilePublicKey(), index);
sequential.add(new File2MetaFileComponent(index, metaContext, metaContext, dataManager));
sequential.add(new ChangeProtectionKeysStep(metaContext, dataManager));
sequential.add(new InitializeChunkUpdateStep(metaContext, dataManager));
return sequential;
}