exportFileChooser.setApproveButtonText(labels.getString("filechooser.export"));
}
if (JFileChooser.APPROVE_OPTION == exportFileChooser.showSaveDialog(this)) {
userPrefs.put("courseBuilder.exportedTemplate", exportFileChooser.getSelectedFile().getPath());
final File target = exportFileChooser.getSelectedFile();
new Worker() {
public Object construct() {
Object result = null;
if (! target.getParentFile().exists()) {
target.getParentFile().mkdirs();
}