private static Map<Object, RestActuatorControllerEndpoint> getHandlers(final Collection<RestActuatorControllerEndpoint> endpoints) {
        val handlers = new LinkedHashMap<Object, RestActuatorControllerEndpoint>();
        endpoints.forEach(endpoint -> handlers.put(endpoint.getEndpointBean(), endpoint));
        return Map.copyOf(handlers);
    }
This is {@link RestActuatorEndpointHandlerMapping}.

@author Misagh Moayyed
@since 7.1.0
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/spring/RestActuatorEndpointHandlerMapping.java