static Set<String> serviceNames(HttpService service) {
        if (thriftServiceClass == null || entriesMethod == null || interfacesMethod == null) {
            return ImmutableSet.of();
        }
        final Object thriftService = service.as(thriftServiceClass);
        if (thriftService == null) {
            return ImmutableSet.of();
        }

        @SuppressWarnings("unchecked")
        final Map<String, ?> entries = (Map<String, ?>) invokeMethod(entriesMethod, thriftService);
        assert entries != null;
        return toServiceName(entries.values());
    }
Retrieves thrift service names of {@code service} using reflection.
spring/boot3-autoconfigure/src/main/java/com/linecorp/armeria/internal/spring/ThriftServiceUtils.java