static void addAdditionalPath(ServerBuilder sb, List<Integer> exposedPorts,
                                  ExposableWebEndpoint endpoint,
                                  HttpCodeStatusMapper statusMapper,
                                  @Nullable CorsServiceBuilder cors, HealthEndpointGroups groups) {
        for (WebOperation operation : endpoint.getOperations()) {
            final WebOperationRequestPredicate predicate = operation.getRequestPredicate();
            final String matchAllRemainingPathSegmentsVariable =
                    predicate.getMatchAllRemainingPathSegmentsVariable();
            // group operation has matchAllRemainingPathSegmentsVariable.
            // e.g. /actuator/health/{*path}
            // We can send a request to /actuator/health/foo if the group name is foo.
            //
            // We have to check if the group has additional path or not.
            // e.g. management:
            //        endpoint:
            //          health:
            //            group:
            //              foo:
            //                include: ping
            //                additional-path: "management:/foohealth"
            if (matchAllRemainingPathSegmentsVariable != null) {
                if (!exposedPorts.isEmpty()) {
                    final Set<HealthEndpointGroup> additionalGroups = groups.getAllWithAdditionalPath(
                            WebServerNamespace.MANAGEMENT);
                    addAdditionalPath(sb, exposedPorts, statusMapper, operation, predicate, additionalGroups,
                                      cors);
                }

                final Set<HealthEndpointGroup> additionalGroups = groups.getAllWithAdditionalPath(
                        WebServerNamespace.SERVER);
                addAdditionalPath(sb, ImmutableList.of(), statusMapper, operation, predicate, additionalGroups,
                                  cors);
            }
        }
    }
A utility class to support {@link WebServerNamespace} which was introduced from Spring Boot 2.6+.
The methods in this class are called only if {@link WebOperationService#HAS_WEB_SERVER_NAMESPACE} is
{@code true}.
spring/boot3-actuator-autoconfigure/src/main/java/com/linecorp/armeria/spring/actuate/WebOperationServiceUtil.java