// process composition
SequentialProcess process = new SequentialProcess();
process.add(new GetUserLocationsStep(session.getCredentials().getUserId(), context, dataManager));
process.add(new RemoveOwnLocationsStep(context, networkManager));
process.add(new StopDownloadsStep(session.getDownloadManager()));
process.add(new WritePersistentStep(session.getRoot(), session.getKeyManager(), session.getDownloadManager()));
process.add(new DeleteSessionStep(networkManager));
// TODO to be implemented: