code: public String getName() {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_path)) {
              return "";
          }
          String result = CmsResource.getName(m_path);
          // remove trailing slash as categories are not displayed like folders
          if (CmsResource.isFolder(result)) {
              result = result.substring(0, result.length() - 1);
          }
          return result;
      }
docs: Returns the mere category name without it's complete path and without the trailing folder - slash.<p>
  
  @return the mere category name without it's complete path and without the trailing folder - slash