code: public PhotoContext getContext(String photoId) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_GET_CONTEXT);
  
          parameters.put("photo_id", photoId);
  
          Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
          PhotoContext photoContext = new PhotoContext();
          Collection<Element> payload = response.getPayloadCollection();
          for (Element payloadElement : payload) {
              String tagName = payloadElement.getTagName();
              if (tagName.equals("prevphoto")) {
                  Photo photo = new Photo();
                  photo.setId(payloadElement.getAttribute("id"));
                  photo.setSecret(payloadElement.getAttribute("secret"));
                  photo.setTitle(payloadElement.getAttribute("title"));
                  photo.setFarm(payloadElement.getAttribute("farm"));
                  photo.setUrl(payloadElement.getAttribute("url"));
                  photoContext.setPreviousPhoto(photo);
              } else if (tagName.equals("nextphoto")) {
                  Photo photo = new Photo();
                  photo.setId(payloadElement.getAttribute("id"));
                  photo.setSecret(payloadElement.getAttribute("secret"));
                  photo.setTitle(payloadElement.getAttribute("title"));
                  photo.setFarm(payloadElement.getAttribute("farm"));
                  photo.setUrl(payloadElement.getAttribute("url"));
                  photoContext.setNextPhoto(photo);
              }
          }
          return photoContext;
      }
docs: Get the context for the specified photo.
  
  This method does not require authentication.
  
  @param photoId
  The photo ID
  @return The PhotoContext
  @throws FlickrException