Allow the document lookup to be done by key name
Allow the document lookup to be done by key name

This will be used by the commenting logic.

Patch by: Sverre Rabbelier

MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging