for (final ProfileForm profile : profilesToSave) {
allProfiles.remove(profile);
final JFileChooser fileChooser = context.getProfileFileChooser();
fileChooser.setDialogTitle(String.format("Save profile '%s'", profile.getName()));
FileChooserProxy fileChooserDialog = new FileChooserProxyImpl(profile, fileChooser);
File loadedFrom = profile.getProfile().getLoadedFrom();
fileChooser.setSelectedFile(loadedFrom != null ? loadedFrom : new File(profile.getName()));
SaveProfileWorker saveJob = new SaveProfileWorker(profileManager, profile, fileChooserDialog);
saveJob.addPropertyChangeListener(new SaveJobCompletionListener());