@Override
    protected boolean isInvocable(final RestActuatorControllerEndpoint endpoint) {
        val annotation = AnnotationUtils.findAnnotation(endpoint.getEndpointBean().getClass(), RestActuatorEndpoint.class);
        return annotation != null;
    }
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