How do I link ErrorGui errors to Trmr entries?

I can create 'Vertical' entries in Trmr (no work necessary by myself, just using the infrastructure jar), and I can create 'Component' entries in Trmr via the infrastructure class `TrmrComponentContext`. I can also create entries in ErrorGui by using Log4j and logging `ErrorLogRecord`'s (another infrastructure class).

But I am struggling to link them together, so that when I try to view TrmrGui, I will see links to the errors in ErrorGui for a specific transaction.

So my question is, how do I link an `ErrorLogRecord` to a specific Trmr transaction?