code: public static boolean isFolder(String resource) {
  
          return CmsStringUtil.isNotEmpty(resource) && (resource.charAt(resource.length() - 1) == '/');
      }
docs: Returns true if the resource name certainly denotes a folder, that is ends with a "/".<p>
  
  @param resource the resource to check
  @return true if the resource name certainly denotes a folder, that is ends with a "/"