LPS-35484 Add support to nested fields to DocumentImpl