private static void configureInternalService(ServerBuilder server, InternalServiceId serviceId,
                                                 @Nullable String servicePath,
                                                 @Nullable HttpService service,
                                                 List<Port> internalPorts,
                                                 @Nullable List<InternalServiceId> internalServiceIds,
                                                 boolean usesPrefixPath) {
        if (service == null) {
            return;
        }
        // An internal service should be created only when a servicePath is not null.
        assert servicePath != null;
        internalServiceIds = firstNonNull(internalServiceIds, ImmutableList.of());

        if (internalPorts.isEmpty()) {
            // No internal ports are configured. The default virtual is used to use the service.
            configureInternalService(server, serviceId, servicePath, service,
                                     (Port) null, internalServiceIds, usesPrefixPath);
        } else {
            for (Port internalPort : internalPorts) {
                configureInternalService(server, serviceId, servicePath, service,
                                         internalPort, internalServiceIds, usesPrefixPath);
            }
        }
    }
Sets graceful shutdown timeout, health check service and {@link MeterRegistry} for the specified
{@link ServerBuilder}.
spring/boot3-autoconfigure/src/main/java/com/linecorp/armeria/internal/spring/ArmeriaConfigurationUtil.java