Source:
public void parse(String outputFilePath) throws ConfigParserException { try { File deploymentConfigurationFile = new File(deploymentConfigurationPath); if (deploymentConfigurationFile.exists()) { if (Boolean.getBoolean(ConfigConstants.OVERRIDE_CONFIGURATION_ALWAYS)) { LOGGER.info("Configurations Override Always was enable"); deployAndStoreMetadata(outputFilePath); } else { List<String> configurationPaths = Arrays.asList(templateFileDir, inferConfigurationFilePath, defaultValueFilePath, validatorFilePath, mappingFilePath, unitResolverFilePath); ChangedFileSet templateChanged = MetaDataParser.getChangedFiles(basePath, configurationPaths, metadataTemplateFilePath); ChangedFileSet configurationChanged = MetaDataParser.getChangedFiles(basePath, metadataFilePath); boolean referencesChanged = MetaDataParser.isReferencesChanged(metadataPropertyPath); if (templateChanged.isChanged() || configurationChanged.isChanged() | referencesChanged) { if (templateChanged.isChanged()) { templateChanged.getChangedFiles().forEach(path -> LOGGER.warn("Configurations templates Changed in :" + path)); templateChanged.getNewFiles().forEach(path -> LOGGER.warn("New Configurations found in :" + path)); LOGGER.warn("Applying Configurations upon new Templates"); } if (configurationChanged.isChanged()) { configurationChanged.getChangedFiles().forEach(path -> LOGGER.warn("Configurations Changed in :" + path)); LOGGER.warn("Overriding files in configuration directory " + outputFilePath); } if (referencesChanged) { LOGGER.warn("Configuration value changed in references, Overriding files in the " + "configuration directory" + outputFilePath); } } deployAndStoreMetadata(outputFilePath); } } else { LOGGER.warn("deployment.toml didn't exist in " + deploymentConfigurationPath + " configurations not " + "overridden"); } } catch (IOException e) { throw new ConfigParserException("Error while store new configurations", e); } }

Target:
public void parse(String outputFilePath) throws ConfigParserException { try { File deploymentConfigurationFile = new File(deploymentConfigurationPath); if (deploymentConfigurationFile.exists()) { if (Boolean.getBoolean(ConfigConstants.OVERRIDE_CONFIGURATION_ALWAYS)) { LOGGER.info("Configurations Override Always was enable"); deployAndStoreMetadata(outputFilePath); } else { List<String> configurationPaths = Arrays.asList(templateFileDir, inferConfigurationFilePath, defaultValueFilePath, validatorFilePath, mappingFilePath, unitResolverFilePath); ChangedFileSet templateChanged = MetaDataParser.getChangedFiles(basePath, configurationPaths, metadataTemplateFilePath); ChangedFileSet configurationChanged = MetaDataParser.getChangedFiles(basePath, metadataFilePath); boolean referencesChanged = MetaDataParser.isReferencesChanged(metadataPropertyPath); if (templateChanged.isChanged() || configurationChanged.isChanged() | referencesChanged) { if (templateChanged.isChanged()) { templateChanged.getChangedFiles().forEach(path -> LOGGER.warn("Configurations templates Changed in :" + path)); templateChanged.getNewFiles().forEach(path -> LOGGER.warn("New Configurations found in :" + path)); LOGGER.info("Applying Configurations upon new Templates"); } if (configurationChanged.isChanged()) { configurationChanged.getChangedFiles().forEach(path -> LOGGER.warn("Configurations Changed in :" + path)); LOGGER.warn("Overriding files in configuration directory " + outputFilePath); } if (referencesChanged) { LOGGER.warn("Configuration value changed in references, Overriding files in the " + "configuration directory" + outputFilePath); } deployAndStoreMetadata(outputFilePath); } } } else { LOGGER.warn("deployment.toml didn't exist in " + deploymentConfigurationPath + " configurations not " + "overridden"); } } catch (IOException e) { throw new ConfigParserException("Error while store new configurations", e); } }