docs: public List<Gallery> getList(String userId, int perPage, int page) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_GET_LIST);
          parameters.put("user_id", userId);
          if (perPage > 0) {
              parameters.put("per_page", String.valueOf(perPage));
          }
          if (page > 0) {
              parameters.put("page", String.valueOf(page));
          }
  
          Response response = transport.post(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
  
          Element element = response.getPayload();
          GalleryList<Gallery> galleries = new GalleryList<Gallery>();
          galleries.setPage(element.getAttribute("page"));
          galleries.setPages(element.getAttribute("pages"));
          galleries.setPerPage(element.getAttribute("per_page"));
          galleries.setTotal(element.getAttribute("total"));
  
          NodeList galleryNodes = element.getElementsByTagName("gallery");
          for (int i = 0; i < galleryNodes.getLength(); i++) {
              Element galleryElement = (Element) galleryNodes.item(i);
              Gallery gallery = new Gallery();
              gallery.setId(galleryElement.getAttribute("id"));
              gallery.setUrl(galleryElement.getAttribute("url"));
  
              User owner = new User();
              owner.setId(galleryElement.getAttribute("owner"));
              gallery.setOwner(owner);
              gallery.setCreateDate(galleryElement.getAttribute("date_create"));
              gallery.setUpdateDate(galleryElement.getAttribute("date_update"));
              gallery.setPrimaryPhotoId(galleryElement.getAttribute("primary_photo_id"));
              gallery.setPrimaryPhotoServer(galleryElement.getAttribute("primary_photo_server"));
              gallery.setPrimaryPhotoFarm(galleryElement.getAttribute("primary_photo_farm"));
              gallery.setPrimaryPhotoSecret(galleryElement.getAttribute("primary_photo_secret"));
              gallery.setPhotoCount(galleryElement.getAttribute("count_photos"));
              gallery.setVideoCount(galleryElement.getAttribute("count_videos"));
  
              galleries.add(gallery);
          }
          return galleries;
      }