BI-344
Use a document by default.
If document does not exists try to use a file path.