code: public static Document create(@NonNull String text, @NonNull Map<AttributeType, ?> attributes) {
        return DocumentFactory.getInstance().create(text, Hermes.defaultLanguage(), attributes);
     }
docs: Convenience method for creating a document using the default document factory.
  
  @param text       the text content making up the document
  @param attributes the attributes, i.e. metadata, associated with the document
  @return the document