public void exportFile(final FileObject fileObject, final Exporter exporter) {
if (exporter == null) {
throw new RuntimeException(NbBundle.getMessage(getClass(), "error_no_matching_file_exporter"));
}
//Export Task
LongTask task = null;
if (exporter instanceof LongTask) {
task = (LongTask) exporter;
}
String taskmsg = NbBundle.getMessage(DesktopExportController.class, "DesktopExportController.exportTaskName", fileObject.getNameExt());