code: public void insertIntoMongoDBCollection(String collection, DataTable table) {
          // Primero pasamos la fila del datatable a un hashmap de ColumnName-Type
          List<String[]> colRel = coltoArrayList(table);
          // Vamos insertando fila a fila
          for (int i = 1; i < table.raw().size(); i++) {
              // Obtenemos la fila correspondiente
              BasicDBObject doc = new BasicDBObject();
              List<String> row = table.raw().get(i);
              for (int x = 0; x < row.size(); x++) {
                  String[] colNameType = colRel.get(x);
                  Object data = castSTringTo(colNameType[1], row.get(x));
                  doc.put(colNameType[0], data);
              }
              this.dataBase.getCollection(collection).insert(doc);
          }
      }
docs: Insert data in a MongoDB Collection.
  
  @param collection
  @param table