return process;
}
public ProcessComponent createShareProcess(File folder, UserPermission permission, NetworkManager networkManager)
throws NoSessionException, NoPeerConnectionException {
ShareProcessContext context = new ShareProcessContext(folder, permission);
SequentialProcess process = new SequentialProcess();
process.add(new VerifyFriendIdStep(networkManager.getSession().getKeyManager(), permission.getUserId()));
process.add(new UpdateUserProfileStep(context, networkManager.getSession()));
process.add(new InitializeMetaUpdateStep(context, networkManager.getDataManager()));