class SofaRuntimeAutoConfiguration {

    private static final Logger LOGGER = SofaBootLoggerFactory
                                           .getLogger(SofaRuntimeAutoConfiguration.class);

    @Bean
    @ConditionalOnMissingBean
    public static SofaRuntimeManager sofaRuntimeManager(Environment environment,
                                                        BindingConverterFactory bindingConverterFactory,
                                                        BindingAdapterFactory bindingAdapterFactory,
                                                        ObjectProvider<DynamicServiceProxyManager> dynamicServiceProxyManager) {<FILL_FUNCTION_BODY>}

    @Bean
    @ConditionalOnMissingBean
    public static SofaRuntimeContext sofaRuntimeContext(SofaRuntimeManager sofaRuntimeManager) {
        return sofaRuntimeManager.getSofaRuntimeContext();
    }

    @Bean
    @ConditionalOnMissingBean
    public static BindingConverterFactory bindingConverterFactory() {
        BindingConverterFactory bindingConverterFactory = new BindingConverterFactoryImpl();
        bindingConverterFactory.addBindingConverters(new HashSet<>(SpringFactoriesLoader
            .loadFactories(BindingConverter.class, null)));
        return bindingConverterFactory;
    }

    @Bean
    @ConditionalOnMissingBean
    public static BindingAdapterFactory bindingAdapterFactory() {
        BindingAdapterFactory bindingAdapterFactory = new BindingAdapterFactoryImpl();
        bindingAdapterFactory.addBindingAdapters(new HashSet<>(SpringFactoriesLoader.loadFactories(
            BindingAdapter.class, null)));
        return bindingAdapterFactory;
    }

    @Bean
    @ConditionalOnMissingBean
    public static RuntimeContextBeanFactoryPostProcessor runtimeContextBeanFactoryPostProcessor() {
        return new RuntimeContextBeanFactoryPostProcessor();
    }

    @Bean
    @ConditionalOnMissingBean
    public static ServiceBeanFactoryPostProcessor serviceBeanFactoryPostProcessor() {
        return new ServiceBeanFactoryPostProcessor();
    }

    @Bean
    @ConditionalOnMissingBean
    public static ProxyBeanFactoryPostProcessor proxyBeanFactoryPostProcessor() {
        return new ProxyBeanFactoryPostProcessor();
    }

    @Bean
    @ConditionalOnMissingBean
    public ComponentContextRefreshInterceptor componentContextRefreshInterceptor(SofaRuntimeManager sofaRuntimeManager) {
        return new ComponentContextRefreshInterceptor(sofaRuntimeManager);
    }

    @Configuration(proxyBeanMethods = false)
    @ConditionalOnSwitch(value = "runtimeAsyncInit")
    static class AsyncInitConfiguration {

        @Bean
        @ConditionalOnMissingBean
        public static AsyncInitMethodManager asyncInitMethodManager() {
            return new AsyncInitMethodManager();
        }

        @Bean(AsyncInitMethodManager.ASYNC_INIT_METHOD_EXECUTOR_BEAN_NAME)
        @ConditionalOnMissingBean(name = AsyncInitMethodManager.ASYNC_INIT_METHOD_EXECUTOR_BEAN_NAME)
        @Conditional(OnVirtualThreadStartupDisableCondition.class)
        public Supplier<ExecutorService> asyncInitMethodExecutor(SofaRuntimeProperties sofaRuntimeProperties) {
            return ()-> {
                int coreSize = sofaRuntimeProperties.getAsyncInitExecutorCoreSize();
                int maxSize = sofaRuntimeProperties.getAsyncInitExecutorMaxSize();
                Assert.isTrue(coreSize >= 0, "executorCoreSize must no less than zero");
                Assert.isTrue(maxSize >= 0, "executorMaxSize must no less than zero");

                LOGGER.info("create async-init-bean thread pool, corePoolSize: {}, maxPoolSize: {}.",
                        coreSize, maxSize);
                return new SofaThreadPoolExecutor(coreSize, maxSize, 30, TimeUnit.SECONDS,
                        new SynchronousQueue<>(), new NamedThreadFactory("async-init-bean"),
                        new ThreadPoolExecutor.CallerRunsPolicy(), "async-init-bean",
                        SofaBootConstants.SOFA_BOOT_SPACE_NAME);
            };
        }

        @Bean(AsyncInitMethodManager.ASYNC_INIT_METHOD_EXECUTOR_BEAN_NAME)
        @ConditionalOnMissingBean(name = AsyncInitMethodManager.ASYNC_INIT_METHOD_EXECUTOR_BEAN_NAME)
        @Conditional(OnVirtualThreadStartupAvailableCondition.class)
        public Supplier<ExecutorService> asyncInitMethodVirtualExecutor() {
            return ()-> {
                LOGGER.info("create async-init-bean virtual executor service");
                return SofaVirtualThreadFactory.ofExecutorService("async-init-bean");
            };
        }

        @Bean
        @ConditionalOnMissingBean
        public static AsyncProxyBeanPostProcessor asyncProxyBeanPostProcessor(AsyncInitMethodManager asyncInitMethodManager) {
            return new AsyncProxyBeanPostProcessor(asyncInitMethodManager);
        }

        @Bean
        @ConditionalOnMissingBean
        public static AsyncInitBeanFactoryPostProcessor asyncInitBeanFactoryPostProcessor() {
            return new AsyncInitBeanFactoryPostProcessor();
        }
    }
}

        ClientFactoryInternal clientFactoryInternal = new ClientFactoryImpl();
        SofaRuntimeManager sofaRuntimeManager = new StandardSofaRuntimeManager(
            environment.getProperty(SofaBootConstants.APP_NAME_KEY), Thread.currentThread()
                .getContextClassLoader(), clientFactoryInternal);
        clientFactoryInternal.registerClient(ReferenceClient.class, new ReferenceClientImpl(
            sofaRuntimeManager.getSofaRuntimeContext(), bindingConverterFactory,
            bindingAdapterFactory));
        clientFactoryInternal.registerClient(ServiceClient.class, new ServiceClientImpl(
            sofaRuntimeManager.getSofaRuntimeContext(), bindingConverterFactory,
            bindingAdapterFactory));

        // use bind to inject properties, avoid bean early init problem.
        SofaRuntimeContext sofaRuntimeContext = sofaRuntimeManager.getSofaRuntimeContext();
        dynamicServiceProxyManager.ifUnique(sofaRuntimeContext::setServiceProxyManager);
        Binder binder = Binder.get(environment);
        SofaRuntimeContext.Properties properties = sofaRuntimeContext.getProperties();
        Bindable<SofaRuntimeContext.Properties> bindable = Bindable.of(SofaRuntimeContext.Properties.class)
                .withExistingValue(properties);
        binder.bind("sofa.boot.runtime", bindable);

        return sofaRuntimeManager;
    
<no_super_class>