int cnt = extm.getExtensionCnt();
int j = 0;
for (int i = 0; i < cnt; i++) {
Extension anExt = extm.getExtension(i);
// check for sites
GenericActionExtension ae = (GenericActionExtension) anExt.getExtensionFor(className);
if (ae != null) {
gtnChild = new GenericTreeNode();
String menuText = ae.getActionText(getLocale());
gtnChild.setTitle(menuText);
gtnChild.setAltText(ae.getDescription(getLocale()));
gtnChild.setUserObject(ae);
// load first child on root node
if (j == 0 && !rootNodeSet) {
rootTreeNode.setDelegate(gtnChild);
rootTreeNode.setUserObject(ae);