private static void addToGroupedProperties(final Map<String, Object> groupedProperties,
                                               final String key, final String value) {
        val parts = Splitter.on('.').splitToList(key);
        var currentMap = groupedProperties;
        for (var i = 0; i < parts.size() - 1; i++) {
            currentMap = getOrCreateSubMap(currentMap, parts.get(i));
        }
        currentMap.put(parts.getLast(), value);
    }
Convert properties to YAML.

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