private RequestMappingInfo withEndpointMappedPatterns(final RestActuatorControllerEndpoint endpoint,
                                                          final RequestMappingInfo mapping) {
        var patterns = mapping.getPathPatternsCondition().getPatterns();
        if (patterns.isEmpty()) {
            patterns = Set.of(getPatternParser().parse(StringUtils.EMPTY));
        }
        val endpointMappedPatterns = patterns.stream()
            .map(pattern -> getEndpointMappedPattern(endpoint, pattern))
            .toArray(String[]::new);
        return mapping.mutate().paths(endpointMappedPatterns).build();
    }
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