final Resource[] resources = moduleLoader.getSpringConfigResources(definition, classLoader);
ConfigurableApplicationContext context = moduleLoader.newApplicationContext(parent, definition, classLoader);
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
beanFactory.addBeanPostProcessor(new ServiceRegistryPostProcessor(serviceRegistry));
beanFactory.addBeanPostProcessor(new ModuleDefinitionPostProcessor(definition));
BeanDefinitionReader reader = moduleLoader.newBeanDefinitionReader(context, definition);
if (reader instanceof AbstractBeanDefinitionReader) {