code: public void setLicense(String photoId, int licenseId) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_SET_LICENSE);
          parameters.put("photo_id", photoId);
          parameters.put("license_id", Integer.toString(licenseId));
  
          // Note: This method requires an HTTP POST request.
          Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
          // This method has no specific response - It returns an empty sucess response if it completes without error.
  
      }
docs: Sets the license for a photo.
  
  This method requires authentication with 'write' permission.
  
  @param photoId
  The photo to update the license for.
  @param licenseId
  The license to apply, or 0 (zero) to remove the current license.
  @throws FlickrException