/**
  * Lists all the files that match the given query
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:find-files-using-query-map}
  *
  * @param queryAttributes the optional query attributes
  * @return a {@link DBObject} files iterable
  */
 @Processor
 public Iterable<DBObject> findFilesUsingQueryMap(
     @Placement(group = "Query Attributes") @Optional Map<String, Object> queryAttributes) {
   return client.findFiles((DBObject) adapt(queryAttributes));
 }
 /**
  * Lists all the files that match the given query
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:find-files}
  *
  * @param query a {@link DBObject} query the optional query
  * @return a {@link DBObject} files iterable
  */
 @Processor
 public Iterable<DBObject> findFiles(@Optional @Default("#[payload]") DBObject query) {
   return client.findFiles(from(query));
 }