do {
unloadedConfigsCount = unloadedConfigs.size();
LinkedHashSet<Artifact> sorted = configurationManager.sort(unloadedConfigs, lifecycleMonitor);
for (Artifact configID : sorted) {
monitor.moduleLoading(configID);
configurationManager.loadConfiguration(configID, lifecycleMonitor);
int configModuleType = configurationManager.getConfiguration(configID).getModuleType().getValue();
unloadedConfigs.remove(configID);
monitor.moduleLoaded(configID);
try {
monitor.moduleStarting(configID);