DATAMONGO-991 - Adapted to deprecation removals in Spring Data Commons.

Related ticket: DATACMNS-469.