`$data` is used in `_createErrorRecord`.  Are you talking about a different method?