@Override
    protected RestActuatorControllerEndpoint createEndpoint(final Object endpointBean, final EndpointId id,
                                                            final Access defaultAccess, final Collection<Operation> operations) {

        val rootPath = PathMapper.getRootPath(this.endpointPathMappers, id);
        return new DiscoveredRestActuatorEndpoint(this, endpointBean, id, rootPath, defaultAccess);
    }
This is {@link RestActuatorEndpointDiscoverer}.

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