/** * {@inheritDoc} */ @Override public boolean performFinish() { Collection<Profile> exportProfiles = selectProfilesWizardPage.getProfiles(); Collection<Environment> exportEnvironments = selectEnvironmentsWizardPage.getEnvironments(); String fileName = selectFileWizardPage.getFileName(); Path path = Paths.get(fileName); try { Files.deleteIfExists(path); byte[] data = cmrRepositoryDefinition.getConfigurationInterfaceService().getExportData(exportEnvironments, exportProfiles); Files.write(path, data, StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE); } catch (BusinessException | IOException e) { InspectIT.getDefault().createErrorDialog("Error exporting instrumentation configuration data.", e, -1); return false; } return true; }