Can you write a few tests for this?  I would assume you need `t.getClass.getName`.

Maybe put this function in the RichXHandler object so it is easier to test.