Factory method for creating a new instance of the Fragment using the provided document.
You may pass in an optional analysis error message. This error message is shown to the user with a retry button.
Note: Always use this method to create new instances. Document is required and an exception is thrown if it's missing.
a new instance of the Fragment
must be the Document from
an optional error message shown to the user