code: @Override
      public void write(String deviceId, String metric, Object value) {
          BasicDBObject metricRecord = new BasicDBObject(of(
                  FIELD_DEVICE_ID, deviceId, FIELD_METRIC, metric, "value", value, "timestamp", new Date()
          ));
          mongo.getDB(db).getCollection(collection).save(metricRecord);
      }
docs: Realizations