private static void putResultsIntoProperties(final Map<String, ConfigurationMetadataProperty> results, final Map<String, Object> p) {
        val lines = results.values().stream()
            .sorted(Comparator.comparing(ConfigurationMetadataProperty::getName)).toList();
        lines.forEach(v -> {
            val value = getDefaultValueForProperty(v);
            LOGGER.info("Adding property [{}]=[{}]", v.getId(), value);
            p.put("# " + v.getId(), value);
        });
    }
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