networkManager.getMessageManager(), keyManager, params.getFileConfig());
// read the cached downloads and add them to the download manager
for (BaseDownloadTask task : metaData.getDownloads()) {
task.reinitializeAfterDeserialization();
downloadManager.submit(task);
}
params.setDownloadManager(downloadManager);
// create session
session = new H2HSession(params);