private static Map<String, Object> getOrCreateSubMap(final Map<String, Object> map, final String key) {
        return (Map<String, Object>) map.computeIfAbsent(key, __ -> new TreeMap<>());
    }
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