code: public static Document create(@NonNull String id, @NonNull String text) {
        return DocumentFactory.getInstance().create(id, text);
     }
docs: Convenience method for creating a document using the default document factory.
  
  @param id   the document id
  @param text the text content making up the document
  @return the document