code: private void internalRemoveApplessSubtrees(boolean isRoot) {
  
          if (isRoot) {
              computeAppCount();
          }
          Iterator<CmsAppCategoryNode> iter = m_children.iterator();
          while (iter.hasNext()) {
              CmsAppCategoryNode child = iter.next();
              if (child.m_appCount == 0) {
                  iter.remove();
              } else {
                  child.internalRemoveApplessSubtrees(false);
              }
          }
      }
docs: Internal helper method used to remove subtrees containing no app configurations.<p>
  
  @param isRoot should be true if this is a root node