code: @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);
      }
docs: Returns metadata information about specified resource with
  checking for its hash with specified max child entries count.
  If nothing changes (hash isn't changed) then 304 will returns.
  
  @param path      to file or directory
  @param fileLimit max child entries count
  @param hash      to check smth changed
  @param list      true to include child entries and false to not
  
  @return metadata of specified resource
  
  @see Entry
  @see DropboxDefaults