Instance mapper for documents