title: Mongo Document with DBRef
body: <p>There are many example how work  with mongo document
  <a href="https://stackoverflow.com/questions/3117167/creating-bson-object-from-json-string">Creating BSON object from JSON string</a></p>
  
  <p>And other
  But I can not find how to create a document with a link (DBRef) to another</p>
  
  <p>Something like this</p>
  
  <pre><code>private static final MessageFormat USER_DBREF = new MessageFormat("DBRef('organizationEntity', ObjectId('{}'))");
  ...
  Document doc = Document.parse(json);
  doc.put("organizationEntity", USER_DBREF.format(new Object[]{organizationEntity.getId()}));
  </code></pre>