code: public BasicDBObject createMongoQuery(EntityMetadata m, Queue filterClauseQueue)
      {
          QueryComponent sq = getQueryComponent(filterClauseQueue);
          populateQueryComponents(m, sq);
          return sq.actualQuery == null ? new BasicDBObject() : sq.actualQuery;
      }
docs: Creates the mongo query.
  
  @param m
  the m
  @param filterClauseQueue
  the filter clause queue
  @return the basic db object