/** * Loads import data. * * @throws IOException * If IO exception occurs during loading. * @throws BusinessException * If business exception occurs during loading. */ private void loadImportData() throws IOException, BusinessException { String fileName = importSelectWizardPage.getFileName(); if (StringUtils.isBlank(fileName)) { importData = null; // NOPMD return; } Path path = Paths.get(fileName); if (!Files.exists(path)) { importData = null; // NOPMD return; } byte[] data = Files.readAllBytes(path); importData = cmrRepositoryDefinition.getConfigurationInterfaceService().getImportData(data); }