poll Document
Continually checks the document status (via the Gini API) until the document is fully processed. To avoid flooding the network, there is a pause of at least DocumentRepository.POLLING_INTERVAL and a timeout of DocumentRepository.POLLING_TIMEOUT.
Return
Resource with the Document instance representing all the document's metadata or information about the error
Parameters
document
The document which will be polled.