hasDefaultChildSoFar = setDefaultChildByName(child.getChildren(), tabName, hasDefaultChildSoFar);
// If the value has changed, it means this menuFacet contains the current tab
// so it's the active one!
if(hasDefaultChildSoFarOld != hasDefaultChildSoFar) {
AbstractMenuFacet menuFacet = (AbstractMenuFacet) child;
menuFacet.getAttributes().put(AbstractMenuFacet.ACTIVE_ATTRIBUTE_NAME, true);
}
}
}
return hasDefaultChildSoFar;