code: public List<CmsCategory> getTopItems() {
  
          List<CmsCategory> categories = new ArrayList<CmsCategory>();
          String matcher = Pattern.quote(m_mainCategoryPath) + "[^/]*/";
          for (CmsCategory category : m_categories) {
              if (category.getPath().matches(matcher)) {
                  categories.add(category);
              }
          }
          return categories;
      }
docs: Returns all categories that are direct children of the current main category.
  
  @return all categories that are direct children of the current main category.