code: public static List<CmsModelResourceInfo> generateModelResourceList(
          CmsObject cms,
          String resourceType,
          List<CmsResource> modelResources,
          Locale contentLocale)
      throws CmsException {
  
          List<CmsModelResourceInfo> result = new ArrayList<CmsModelResourceInfo>();
          Locale wpLocale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
          CmsModelResourceInfo defaultInfo = new CmsModelResourceInfo(
              Messages.get().getBundle(wpLocale).key(Messages.GUI_TITLE_DEFAULT_RESOURCE_CONTENT_0),
              Messages.get().getBundle(wpLocale).key(Messages.GUI_DESCRIPTION_DEFAULT_RESOURCE_CONTENT_0),
              null);
          defaultInfo.setResourceType(resourceType);
          result.add(defaultInfo);
          for (CmsResource model : modelResources) {
              CmsGallerySearchResult searchInfo = CmsGallerySearch.searchById(cms, model.getStructureId(), contentLocale);
              CmsModelResourceInfo modelInfo = new CmsModelResourceInfo(
                  searchInfo.getTitle(),
                  searchInfo.getDescription(),
                  null);
              modelInfo.addAdditionalInfo(
                  Messages.get().getBundle(wpLocale).key(Messages.GUI_LABEL_PATH_0),
                  cms.getSitePath(model));
              modelInfo.setResourceType(resourceType);
              modelInfo.setStructureId(model.getStructureId());
              result.add(modelInfo);
          }
          return result;
      }
docs: Generates the model resource data list.<p>
  
  @param cms the cms context
  @param resourceType the resource type name
  @param modelResources the model resource
  @param contentLocale the content locale
  
  @return the model resources data
  
  @throws CmsException if something goes wrong reading the resource information