Have a look at
org.hibernate.ogm.datastore.mongodb.MonogDBDialect$MongoDBAggregationOutput
or
org.hibernate.ogm.datastore.mongodb.MonogDBDialect$MongoDBResultsCursor
If you cannot reuse one of the existing classes I expect that you need to do create a similar one.