@Bean
        @ConditionalOnMissingBean(name = "restControllerEndpointSupplier")
        public EndpointsSupplier<RestActuatorControllerEndpoint> restControllerEndpointSupplier(
            final ConfigurableApplicationContext applicationContext,
            final ObjectProvider<PathMapper> endpointPathMappers,
            final ObjectProvider<Collection<EndpointFilter<RestActuatorControllerEndpoint>>> filters) {
            return new RestActuatorEndpointDiscoverer(applicationContext,
                endpointPathMappers.orderedStream().toList(),
                filters.getIfAvailable(Collections::emptyList));
        }
This configuration class registers an {@link EndpointsSupplier}
in the root/parent application context, so that endpoints discovered
here can be used by the {@link org.springframework.boot.actuate.endpoint.web.PathMappedEndpoint}
when the security filter chain is configured.
This is only required if actuator endpoints are defined to run in a separate/child
application (management) context.
@see CasCoreWebManagementContextConfiguration
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreWebConfiguration.java