docs: @SuppressWarnings({"PointlessBooleanExpression"})
      public Entry getMetadata(String path, int fileLimit, @Nullable String hash, boolean list) {
          OAuthRequest request = new OAuthRequest(Verb.GET, METADATA_URL + encode(path));
  
          if (fileLimit != FILE_LIMIT)
              request.addQuerystringParameter("file_limit", Integer.toString(fileLimit));
  
          if (hash != null) {
              request.addQuerystringParameter("hash", hash);
          }
  
          if (list != LIST) {
              request.addQuerystringParameter("list", Boolean.toString(list));
          }
  
          service.signRequest(accessToken, request);
          String content = checkMetadata(request.send()).getBody();
  
          return Json.parse(content, Entry.class);
      }