code: private Map<String, CmsGalleryTypeInfo> readGalleryInfosByTypeNames(List<String> resourceTypes) {
  
          Map<String, CmsGalleryTypeInfo> galleryTypeInfos = new HashMap<String, CmsGalleryTypeInfo>();
          for (String typeName : resourceTypes) {
              try {
                  addGalleriesForType(galleryTypeInfos, typeName);
              } catch (CmsLoaderException e1) {
                  logError(e1);
              }
          }
          return galleryTypeInfos;
      }
docs: Returns a map with gallery type names associated with the list of available galleries for this type.<p>
  
  @param resourceTypes the resources types to collect the galleries for
  
  @return a map with gallery type and  the associated galleries