code: public static Document create(@NonNull String id, @NonNull String text, @NonNull Language language, @NonNull Map<AttributeType, ?> attributes) {
        return DocumentFactory.getInstance().create(id, text, language, attributes);
     }
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
  @param language   the language of the content
  @param attributes the attributes, i.e. metadata, associated with the document
  @return the document