code: protected static boolean isFolder(CmsResource resource) throws CmsLoaderException {
  
          I_CmsResourceType resourceType = OpenCms.getResourceManager().getResourceType(resource.getTypeId());
          return resourceType.isFolder();
      }
docs: Helper method to check whether a given resource is a folder.<p>
  
  @param resource the resouce to check
  @return true if the resource is a folder
  
  @throws CmsLoaderException if the resource type couldn't be found