PostExportManager postExportManager = null;
try {
ManagedProject project = exportUi.getProjectToExport();
ExportParameters params = exportUi.getExportParameters();
postExportManager = project.prepareForExport(params.arePasswordsExported());
Exporter exporter = createExporter(params);
JitterPack jp = exporter.pack(project, exportUi.getComment(), exportUi.getDestination(), params);
callback.succeeded(jp);
postExportManager.runJobs(PostExportJob.Condition.ON_SUCCESS);
} catch (Throwable err) {
// This is a boundary to the UI: we must catch all errors here, including
// RuntimeExceptions and Errors (see bug 2803249)