code: void loadCategories(CmsObject cms, String contextPath) {
  
          m_checkboxes.clear();
          m_container.removeAllItems();
  
          List<CmsCategory> categories;
          Locale wpLocale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
          CmsCategoryService catService = CmsCategoryService.getInstance();
          // get the categories
          try {
              categories = catService.readCategories(cms, "", true, contextPath);
  
              categories = catService.localizeCategories(cms, categories, wpLocale);
              setCategories(categories);
          } catch (CmsException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
docs: Loads the categories for the given context path.<p>
  
  @param cms the cms context
  @param contextPath the context path