It is a bit of an anti-pattern. I will see if I can figure out why this is the case. My understanding is that this code is executed in the client jvm, so I don't know why memory usage would be enough of a concern to do this. Kind of an anti-pattern.

Oh, and I checked in a commented-out import statement. I have removed it in my fork.