DefaultModuleStateHolder moduleStateHolder = new DefaultModuleStateHolder();
DefaultTransitionManager transitionManager = new DefaultTransitionManager();
ModuleLoaderRegistry registry = new ModuleLoaderRegistry();
ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
CustomClassLoaderFactory classLoaderFactory = new CustomClassLoaderFactory();
classLoaderFactory.setModuleLocationResolver(resolver);
ApplicationModuleLoader rootModuleLoader = new ApplicationModuleLoader();
registry.addItem("spring-"+ModuleTypes.ROOT, rootModuleLoader);
ApplicationModuleLoader applicationModuleLoader = new ApplicationModuleLoader();