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