class SofaModuleAutoConfiguration {

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

    @Bean
    @ConditionalOnMissingBean
    public PipelineContext pipelineContext(List<PipelineStage> stageList) {
        PipelineContext pipelineContext = new DefaultPipelineContext();
        stageList.forEach(pipelineContext::appendStage);
        return pipelineContext;
    }

    @Bean
    @ConditionalOnMissingBean
    public SofaModuleContextLifecycle sofaModuleContextLifecycle(PipelineContext pipelineContext) {
        return new SofaModuleContextLifecycle(pipelineContext);
    }

    @Bean({ ApplicationRuntimeModel.APPLICATION_RUNTIME_MODEL_NAME,
            ApplicationRuntimeModel.APPLICATION })
    @ConditionalOnMissingBean
    public ApplicationRuntimeModel applicationRuntimeModel(ModuleDeploymentValidator moduleDeploymentValidator,
                                                           SofaModuleProfileChecker sofaModuleProfileChecker) {
        ApplicationRuntimeModel applicationRuntimeModel = new ApplicationRuntimeModel();
        applicationRuntimeModel.setModuleDeploymentValidator(moduleDeploymentValidator);
        applicationRuntimeModel.setSofaModuleProfileChecker(sofaModuleProfileChecker);
        return applicationRuntimeModel;
    }

    @Bean
    @ConditionalOnMissingBean
    public ModelCreatingStage modelCreatingStage(
            SofaModuleProperties sofaModuleProperties,
            ApplicationRuntimeModel applicationRuntimeModel) {<FILL_FUNCTION_BODY>}

    @Bean
    @ConditionalOnMissingBean
    public SpringContextInstallStage springContextInstallStage(SofaModuleProperties sofaModuleProperties,
                                                               SpringContextLoader springContextLoader,
                                                               ApplicationRuntimeModel applicationRuntimeModel) {
        SpringContextInstallStage springContextInstallStage = new SpringContextInstallStage();
        springContextInstallStage.setApplicationRuntimeModel(applicationRuntimeModel);
        springContextInstallStage.setSpringContextLoader(springContextLoader);
        springContextInstallStage.setModuleStartUpParallel(sofaModuleProperties
            .isModuleStartUpParallel());
        springContextInstallStage.setIgnoreModuleInstallFailure(sofaModuleProperties
            .isIgnoreModuleInstallFailure());
        return springContextInstallStage;
    }

    @Bean
    @ConditionalOnMissingBean
    public ModuleLogOutputStage moduleLogOutputStage(ApplicationRuntimeModel applicationRuntimeModel) {
        ModuleLogOutputStage moduleLogOutputStage = new ModuleLogOutputStage();
        moduleLogOutputStage.setApplicationRuntimeModel(applicationRuntimeModel);
        return moduleLogOutputStage;
    }

    @Bean
    @ConditionalOnMissingBean
    public SpringContextLoader sofaDynamicSpringContextLoader(SofaModuleProperties sofaModuleProperties,
                                                              ApplicationContext applicationContext,
                                                              ObjectProvider<ContextRefreshInterceptor> contextRefreshInterceptors,
                                                              SofaPostProcessorShareManager sofaPostProcessorShareManager) {
        DynamicSpringContextLoader dynamicSpringContextLoader = new DynamicSpringContextLoader(
            applicationContext);
        dynamicSpringContextLoader.setActiveProfiles(sofaModuleProperties.getActiveProfiles());
        dynamicSpringContextLoader.setAllowBeanOverriding(sofaModuleProperties
            .isAllowBeanDefinitionOverriding());
        dynamicSpringContextLoader.setPublishEventToParent(sofaModuleProperties
            .isPublishEventToParent());
        dynamicSpringContextLoader.setContextRefreshInterceptors(new ArrayList<>(
            contextRefreshInterceptors.orderedStream().toList()));
        dynamicSpringContextLoader.setSofaPostProcessorShareManager(sofaPostProcessorShareManager);
        return dynamicSpringContextLoader;
    }

    @Bean(SpringContextInstallStage.SOFA_MODULE_REFRESH_EXECUTOR_BEAN_NAME)
    @ConditionalOnMissingBean(name = SpringContextInstallStage.SOFA_MODULE_REFRESH_EXECUTOR_BEAN_NAME)
    @ConditionalOnProperty(value = "sofa.boot.isle.moduleStartUpParallel", havingValue = "true", matchIfMissing = true)
    @Conditional(OnVirtualThreadStartupDisableCondition.class)
    public Supplier<ExecutorService> sofaModuleRefreshExecutor(SofaModuleProperties sofaModuleProperties) {
        int coreSize = (int) (SofaBootConstants.CPU_CORE * sofaModuleProperties.getParallelRefreshPoolSizeFactor());
        long taskTimeout = sofaModuleProperties.getParallelRefreshTimeout();
        long checkPeriod = sofaModuleProperties.getParallelRefreshCheckPeriod();

        LOGGER.info("Create SOFA module refresh thread pool, corePoolSize: {}, maxPoolSize: {}," +
                        " taskTimeout:{}, checkPeriod:{}",
                coreSize, coreSize, taskTimeout, checkPeriod);
        return () -> new SofaThreadPoolExecutor(coreSize, coreSize, 60,
                TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(1000),
                new NamedThreadFactory("sofa-module-refresh"), new ThreadPoolExecutor.CallerRunsPolicy(),
                "sofa-module-refresh", SofaBootConstants.SOFA_BOOT_SPACE_NAME, taskTimeout, checkPeriod,
                TimeUnit.SECONDS);
    }

    @Bean(SpringContextInstallStage.SOFA_MODULE_REFRESH_EXECUTOR_BEAN_NAME)
    @ConditionalOnMissingBean(name = SpringContextInstallStage.SOFA_MODULE_REFRESH_EXECUTOR_BEAN_NAME)
    @ConditionalOnProperty(value = "sofa.boot.isle.moduleStartUpParallel", havingValue = "true", matchIfMissing = true)
    @Conditional(OnVirtualThreadStartupAvailableCondition.class)
    public Supplier<ExecutorService> sofaModuleRefreshVirtualExecutor() {
        return () -> {
            LOGGER.info("Create SOFA module refresh virtual executor service");
            return SofaVirtualThreadFactory.ofExecutorService("sofa-module-refresh");
        };
    }

    @Bean
    @ConditionalOnMissingBean
    public SofaModuleProfileChecker sofaModuleProfileChecker(SofaModuleProperties sofaModuleProperties) {
        DefaultSofaModuleProfileChecker defaultSofaModuleProfileChecker = new DefaultSofaModuleProfileChecker();
        defaultSofaModuleProfileChecker.setUserCustomProfiles(sofaModuleProperties
            .getActiveProfiles());
        return defaultSofaModuleProfileChecker;
    }

    @Bean
    @ConditionalOnMissingBean
    public ModuleDeploymentValidator sofaModuleDeploymentValidator() {
        return new DefaultModuleDeploymentValidator();
    }

    @Bean
    @ConditionalOnMissingBean
    public SofaPostProcessorShareManager sofaModulePostProcessorShareManager(SofaModuleProperties sofaModuleProperties,
                                                                             ObjectProvider<SofaPostProcessorShareFilter> sofaPostProcessorShareFilters) {
        SofaPostProcessorShareManager sofaPostProcessorShareManager = new SofaPostProcessorShareManager();
        sofaPostProcessorShareManager.setShareParentContextPostProcessors(sofaModuleProperties
            .isShareParentPostProcessor());
        sofaPostProcessorShareManager
            .setSofaPostProcessorShareFilters(sofaPostProcessorShareFilters.orderedStream()
                .toList());
        return sofaPostProcessorShareManager;
    }

}

        ModelCreatingStage modelCreatingStage = new ModelCreatingStage();
        sofaModuleProperties.getIgnoreModules().forEach(modelCreatingStage::addIgnoreModule);
        sofaModuleProperties.getIgnoreCalculateRequireModules().forEach(modelCreatingStage::addIgnoredCalculateRequireModule);
        modelCreatingStage.setAllowModuleOverriding(sofaModuleProperties.isAllowModuleOverriding());
        modelCreatingStage.setApplicationRuntimeModel(applicationRuntimeModel);
        return modelCreatingStage;
    
<no_super_class>