private static void writeProperty(final Writer allPropsFile, final CasReferenceProperty prop) throws Exception {
        allPropsFile.write(String.format("# Owner: %s%n", prop.getOwner()));
        allPropsFile.write(String.format("# Type: %s%n", prop.getType()));
        var description = cleanDescription(prop);
        if (StringUtils.isNotBlank(description)) {
            if (prop.isDuration()) {
                description += " This settings supports the Duration syntax.";
            }
            if (prop.isExpressionLanguage()) {
                description += " This settings supports the Spring Expression Language.";
            }
            allPropsFile.write(String.format("# Description: %s%n", description));
        }
        allPropsFile.write(String.format("# %s = %s%n", prop.getName(), prop.getDefaultValue()));
        if (StringUtils.isNotBlank(prop.getDeprecationLevel())) {
            allPropsFile.write(String.format("# Deprecation Level: %s%n", prop.getDeprecationLevel()));
        }
        if (StringUtils.isNotBlank(prop.getDeprecationReason())) {
            allPropsFile.write(String.format("# Deprecation Reason: %s%n", prop.getDeprecationReason()));
        }
        if (StringUtils.isNotBlank(prop.getDeprecationReplacement())) {
            allPropsFile.write(String.format("# Deprecation Replacement: %s%n", prop.getDeprecationReplacement()));
        }
        allPropsFile.write("#############################################\n");
    }
This is {@link ExportPropertiesCommand}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/properties/ExportPropertiesCommand.java