code: public String getStartingCategory(CmsObject cms, String referencePath) {
  
          String ret = "";
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_category) && CmsStringUtil.isEmptyOrWhitespaceOnly(m_property)) {
              ret = "/";
          } else if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_property)) {
              ret = m_category;
          } else {
              // use the given property from the right file
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(referencePath)) {
                  try {
                      ret = cms.readPropertyObject(referencePath, m_property, true).getValue("/");
                  } catch (CmsException ex) {
                      // should never happen
                      if (LOG.isErrorEnabled()) {
                          LOG.error(ex.getLocalizedMessage(), ex);
                      }
                  }
              }
          }
          if (!ret.endsWith("/")) {
              ret += "/";
          }
          if (ret.startsWith("/")) {
              ret = ret.substring(1);
          }
          return ret;
      }
docs: Returns the starting category depending on the configuration options.<p>
  
  @param cms the cms context
  @param referencePath the right resource path
  
  @return the starting category