The code looks very good. I wonder if this code can be placed into the normal distribution. I found only three implementors of the UserType interface and saidly this wasn't in there. Would be nice to have such a support right out of the box.