MongoDb Issue occured while creating query using Projection and Unwind Operation

I am trying to create query using Projection and Unwind Operation

ProjectionOperation initialProjection = Aggregation.project()
.and(“_id”).as(“_id”)
.and(“correlationId”).as(“correlationId”)
.and(“result.detections”).as(“detections”)