Its `getUnitOfWork()->getDocumentId()` - but this doesn't work here as the Route documents are generated each time (they are not managed, they are `NEW`) and the `getDocumentId` method only works for Managed documents.