);     }      private Optional<Integer> getRecordsScannedByPlan(RecordQueryPlan plan, ExecuteProperties executeProperties) throws Exception {         try (FDBRecordContext context = openContext()) {             openSimpleRecordStore(context);             if (context.getTimer() != null) {                 context.getTimer().reset();             }              try (RecordCursorIterator<FDBQueriedRecord<Message>> cursor =                          recordStore.executeQuery(plan, null, executeProperties)