private static void configureInternalService(ServerBuilder server, InternalServiceId serviceId,
                                                 String servicePath,
                                                 HttpService service, @Nullable Port internalPort,
                                                 List<InternalServiceId> internalServiceIds,
                                                 boolean usesPrefixPath) {
        final boolean needsPortBasedVirtualHost;
        if (internalPort == null) {
            needsPortBasedVirtualHost = false;
        } else {
            if (internalServiceIds.contains(InternalServiceId.ALL)) {
                // All internal services use the internal port.
                needsPortBasedVirtualHost = true;
            } else {
                // The service specified in internalServiceIds uses the internal port.
                needsPortBasedVirtualHost = internalServiceIds.contains(serviceId);
            }
        }

        if (needsPortBasedVirtualHost) {
            assert internalPort != null;
            if (usesPrefixPath) {
                server.virtualHost(internalPort.getPort()).serviceUnder(servicePath, service);
            } else {
                server.virtualHost(internalPort.getPort()).service(servicePath, service);
            }
        } else {
            if (usesPrefixPath) {
                server.serviceUnder(servicePath, service);
            } else {
                server.service(servicePath, service);
            }
        }
    }
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