private static boolean doesPropertyBelongToModule(final ConfigurationMetadataProperty property,
                                                      final ConfigurationMetadataCatalogQuery query) {
        if (query.getModules().isEmpty()) {
            return true;
        }

        val valueHints = property.getHints().getValueHints();
        return valueHints
            .stream()
            .filter(hint -> StringUtils.isNotBlank(hint.getDescription()))
            .filter(hint -> hint.getDescription().equals(RequiresModule.class.getName()))
            .anyMatch(hint -> {
                val results = reasonJsonValueAsMap(hint.getValue().toString());
                val module = results.get("module").toString();
                return query.getModules().contains(module);
            });
    }
Query cas properties.

@param query the query
@param repo  the repo
@return the cas properties container
support/cas-server-support-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/CasConfigurationMetadataCatalog.java