/**
  * Finds all objects that match a given query. If no query is specified, all objects of the
  * collection are retrieved. If no fields object is specified, all fields are retrieved.
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:find-objects}
  *
  * @param collection the target collection
  * @param query the optional {@link DBObject} query object. If unspecified, all documents are
  *     returned.
  * @param fields alternative way of passing fields as a literal List
  * @param numToSkip number of objects skip (offset)
  * @param limit limit of objects to return
  * @return an iterable of {@link DBObject}
  */
 @Processor
 public Iterable<DBObject> findObjects(
     String collection,
     @Optional @Default("") DBObject query,
     @Placement(group = "Fields") @Optional List<String> fields,
     @Optional Integer numToSkip,
     @Optional Integer limit) {
   return client.findObjects(collection, query, fields, numToSkip, limit);
 }
 /**
  * Finds all objects that match a given query. If no query is specified, all objects of the
  * collection are retrieved. If no fields object is specified, all fields are retrieved.
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:find-objects-using-query-map}
  *
  * @param collection the target collection
  * @param queryAttributes the optional query object. If unspecified, all documents are returned.
  * @param fields alternative way of passing fields as a literal List
  * @param numToSkip number of objects skip (offset)
  * @param limit limit of objects to return
  * @return an iterable of {@link DBObject}
  */
 @Processor
 public Iterable<DBObject> findObjectsUsingQueryMap(
     String collection,
     @Placement(group = "Query Attributes") @Optional Map<String, Object> queryAttributes,
     @Placement(group = "Fields") @Optional List<String> fields,
     @Optional Integer numToSkip,
     @Optional Integer limit) {
   return client.findObjects(
       collection, (DBObject) adapt(queryAttributes), fields, numToSkip, limit);
 }