for (Iterator<Configuration> iter = configuration.getChildren("module").iterator(); iter.hasNext();) {
Configuration moduleConfig = iter.next();
String className = moduleConfig.getAttribute("classname");
try {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
OLATModule olatmodule = (OLATModule) cl.loadClass(className).newInstance();
log.info("*** INIT: Initializing module '" + olatmodule.getClass().getName() + "'.");
olatmodule.init(moduleConfig);
modules.add(olatmodule);
} catch (Throwable e) {
log.error("Error loading module '" + className + "'", e);
abort(e);
}