Class extensionPointSites = DTabs.class;
int cnt = extm.getExtensionCnt();
for (int i = 0; i < cnt; i++) {
Extension anExt = extm.getExtension(i);
// check for sites
SitesCreator sc = (SitesCreator) anExt.getExtensionFor(extensionPointSites.getName());
if (sc != null) {
List extsitedefs = sc.createSiteDefinitions();
for (Iterator it_extsites = extsitedefs.iterator(); it_extsites.hasNext();) {
SiteDefinition sdef = (SiteDefinition) it_extsites.next();
SiteInstance si = sdef.createSite(ureq, wControl);
sites.add(si);
extm.inform(extensionPointSites, anExt, "added sitedefinition " + sdef.getClass().getName());