code: private CmsGalleryFolderEntry readGalleryFolderEntry(CmsResource folder, String typeName) throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsGalleryFolderEntry folderEntry = new CmsGalleryFolderEntry();
          folderEntry.setResourceType(typeName);
          folderEntry.setSitePath(cms.getSitePath(folder));
          folderEntry.setStructureId(folder.getStructureId());
          folderEntry.setOwnProperties(getClientProperties(cms, folder, false));
          folderEntry.setIconClasses(CmsIconUtil.getIconClasses(typeName, null, false));
          return folderEntry;
      }
docs: Reads the gallery folder properties.<p>
  
  @param folder the folder resource
  @param typeName the  resource type name
  
  @return the folder entry data
  
  @throws CmsException if the folder properties can not be read