code: public static String getDisplayType(CmsObject cms, CmsResource resource) {
  
          String result;
          if (CmsJspNavBuilder.isNavLevelFolder(cms, resource)) {
              result = CmsGwtConstants.TYPE_NAVLEVEL;
          } else if (CmsResourceTypeXmlContainerPage.isModelCopyGroup(cms, resource)) {
              result = CmsGwtConstants.TYPE_MODELGROUP_COPY;
          } else {
              result = OpenCms.getResourceManager().getResourceType(resource).getTypeName();
          }
          return result;
      }
docs: Returns the resource type name used to display the resource icon.
  This may differ from the actual resource type in case of navigation level folders and model groups.<p>
  
  @param cms the cms context
  @param resource the resource
  
  @return the display type name