docs: public User getLimits() throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_GET_LIMITS);
  
          Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
          Element userElement = response.getPayload();
          User user = new User();
          user.setId(userElement.getAttribute("nsid"));
          NodeList photoNodes = userElement.getElementsByTagName("photos");
          for (int i = 0; i < photoNodes.getLength(); i++) {
              Element plElement = (Element) photoNodes.item(i);
              PhotoLimits pl = new PhotoLimits();
              user.setPhotoLimits(pl);
              pl.setMaxDisplay(plElement.getAttribute("maxdisplaypx"));
              pl.setMaxUpload(plElement.getAttribute("maxupload"));
          }
          NodeList videoNodes = userElement.getElementsByTagName("videos");
          for (int i = 0; i < videoNodes.getLength(); i++) {
              Element vlElement = (Element) videoNodes.item(i);
              VideoLimits vl = new VideoLimits();
              user.setPhotoLimits(vl);
              vl.setMaxDuration(vlElement.getAttribute("maxduration"));
              vl.setMaxUpload(vlElement.getAttribute("maxupload"));
          }
          return user;
      }