code: public Gallery lookupGallery(String galleryId) throws FlickrException {
  
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_LOOKUP_GALLERY);
          parameters.put("url", galleryId);
  
          Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
  
          Element galleryElement = response.getPayload();
          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.setVideoCount(galleryElement.getAttribute("count_videos"));
          gallery.setPhotoCount(galleryElement.getAttribute("count_photos"));
          gallery.setPrimaryPhotoFarm(galleryElement.getAttribute("farm"));
          gallery.setPrimaryPhotoSecret(galleryElement.getAttribute("secret"));
  
          gallery.setTitle(XMLUtilities.getChildValue(galleryElement, "title"));
          gallery.setDesc(XMLUtilities.getChildValue(galleryElement, "description"));
          return gallery;
      }
docs: Lookup the Gallery for the specified ID.
  
  @param galleryId
  The user profile URL
  @return The Gallery
  @throws FlickrException