context = loadApplicationContext(moduleLoader, parent, definition);
moduleLoader.afterRefresh(context, definition);
}
else if (delegatingLoader != null) {
if (logger.isDebugEnabled()) logger.debug("Loading module " + definition + " using DelegatingContextLoader " + moduleLoader);
context = delegatingLoader.loadApplicationContext(parent, definition);
}
else {
throw new ConfigurationException("No " + ModuleLoader.class.getName() + " or "
+ DelegatingContextLoader.class.getName() + " specified for module definition type " + definition.getType());
}