esl-9344. Added support to get document's metadata