code: public void insertDocIntoMongoDBCollection(String collection, String document) {
  
          DBObject dbObject = (DBObject) JSON.parse(document);
          this.dataBase.getCollection(collection).insert(dbObject);
  
      }
docs: Insert document in a MongoDB Collection.
  
  @param collection
  @param document