final boolean finalExportHtml = exportHtml;
final boolean finalExportBoth = exportBoth;
final String finalExportDir = exportDir + File.separatorChar + project.getName();
//Create a task to export the bug collection to html
final AtomicReference<Task> exportTask = new AtomicReference<Task>(new BackgroundableTask(project, "Exporting Findbugs Result", false) {
private ProgressIndicator _indicator;
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings({"REC_CATCH_EXCEPTION"})
@SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})