private static void writeConfigurationPropertiesToFile(final File filePath, final Map<String, ConfigurationMetadataProperty> results,
                                                           final Map<String, Object> p) throws Exception {
        LOGGER.info("Located [{}] properties in configuration file [{}]", results.size(), filePath.getCanonicalPath());
        putResultsIntoProperties(results, p);
        val lines = p.keySet().stream().map(s -> s + '=' + p.get(s))
            .sorted(Comparator.naturalOrder())
            .collect(Collectors.toList());
        FileUtils.writeLines(filePath, lines);
    }
Add properties to configuration.

@param file  the file
@param group the group
@throws Exception the exception
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/properties/AddPropertiesToConfigurationCommand.java