code: public static String getTreeCaptionHTML(
          String resourceName,
          CmsResourceUtil resUtil,
          CmsResourceState state,
          boolean showLocks) {
  
          return CmsResourceIcon.getIconHTML(resUtil, null, false)
              + "<span class=\"o-tree-caption\">"
              + resourceName
              + "</span>";
      }
docs: Returns the tree caption HTML including the resource icon.<p>
  
  @param resourceName the resource name to display
  @param resUtil the resource util for the resource
  @param state the resource state
  @param showLocks <code>true</code> to show lock state overlay
  
  @return the icon HTML