This code here could very easily break things in GemStone ... Have you added the oldCategory stuff elsewhere?

I'm not quite sure what this code has to do with traits?