class Configuration {

    public static HashMap<String, String> getOldNodeValuesForParameters(Set<String> parameters, Document document) throws ConfigurationItemException {

    	LoggingService.logDebug(MODULE_NAME, "Start get Old Node Values For Parameters : ");
    	
        HashMap<String, String> result = new HashMap<>();

        for (String option : parameters) {
            CommandLineConfigParam cmdOption = getCommandByName(option)
                    .orElseThrow(() -> new ConfigurationItemException("Invalid parameter -" + option));
            result.put(cmdOption.getCommandName(), getNode(cmdOption, document));
        }

        LoggingService.logDebug(MODULE_NAME, "Finished get Old Node Values For Parameters : ");
        
        return result;
    }

}