public static StringBuilder collectJavadocsEnumFields(final ConfigurationMetadataProperty prop,
                                                          final EnumDeclaration em) {
        val builder = new StringBuilder(StringUtils.defaultString(prop.getDescription()));
        builder.append("\nAvailable values are as follows:\n");
        builder.append("<ul>");
        em.getEntries()
            .stream()
            .filter(entry -> entry.getJavadoc().isPresent())
            .forEach(entry -> {
                var text = entry.getJavadoc().get().getDescription().toText();
                text = StringUtils.appendIfMissing(text, ".");
                val member = String.format("<li>{@code %s}: %s</li>", entry.getNameAsString(), text);
                builder.append(member);
            });
        builder.append("</ul>");
        return builder;
    }
Collect javadocs enum fields.

@param prop the prop
@param em   the em
@return the string builder
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataPropertyCreator.java