private static String getEndpointId(final Annotation endpoint, final Class annotationClazz) {
        if (annotationClazz.equals(RestControllerEndpoint.class)) {
            return ((RestControllerEndpoint) endpoint).id();
        }
        return ((Endpoint) endpoint).id();
    }
This is {@link CasDocumentationApplication}.

@author Misagh Moayyed
@since 6.4.0
docs/cas-server-documentation-processor/src/main/java/org/apereo/cas/documentation/CasDocumentationApplication.java