@Override
  public void writeString(String text) throws IOException {
    if (text == null) {
      writeNull();
    } else {
      writer.writeString(text);
    }
  }
Delegates all streaming API to {@link BsonWriter}.
criteria/mongo/src/org/immutables/criteria/mongo/bson4jackson/BsonGenerator.java