code: public static BaasResult<List<BaasDocument>> fetchAllSync(String collection, BaasQuery.Criteria filter) {
          BaasBox box = BaasBox.getDefaultChecked();
          if (collection == null) throw new IllegalArgumentException("collection cannot be null");
          Fetch f = new Fetch(box, collection, filter, RequestOptions.DEFAULT, null);
          return box.submitSync(f);
      }
docs: Synchronously retrieves the list of documents readable to the user
  in <code>collection</code>
  
  @param collection the collection to retrieve not <code>null</code>
  @return the result of the request