for (ModuleDefinition moduleDefinition : dependencies) {
final String currentName = moduleDefinition.getName();
final RuntimeModule runtimeModule = graphModuleStateHolder.getModule(currentName);
if (runtimeModule instanceof SpringRuntimeModule) {
SpringRuntimeModule spr = (SpringRuntimeModule) runtimeModule;
applicationContexts.add(spr.getApplicationContext());
}
}
maybeAddRootParent(applicationContexts);
return applicationContexts;