public void setNodeConfigurationList(List<CourseNodeConfiguration> courseNodeConfigurationList) throws StartupException {
courseNodeConfigurationsAliases = new ArrayList<String>(courseNodeConfigurationList.size());
courseNodeConfigurations = new HashMap<String, CourseNodeConfiguration>(courseNodeConfigurationList.size());
// check beans
ExtensionManager extMgr = ExtensionManager.getInstance();
for (Iterator<CourseNodeConfiguration> iter = courseNodeConfigurationList.iterator(); iter.hasNext();) {
try {
CourseNodeConfiguration cnConfig = iter.next();
courseNodeConfigurationsAliases.add(cnConfig.getAlias());
courseNodeConfigurations.put(cnConfig.getAlias(), cnConfig);
log.info("Added building block '" + cnConfig.getAlias() + "', class '" + cnConfig.getClass().getName() + "'.");
if (cnConfig instanceof OLATExtension) try {
extMgr.deployExtension((OLATExtension) cnConfig);
} catch (IOException ioe) {
throw new StartupException("Error deploying bean '" + cnConfig + "'.",ioe);
}
} catch (ClassCastException cce) {
// log message because static initializers will throw