Wrapping for enums.

It's needed because jackson statically caching enums classes. After redeploing it's leads to ClassLoader hell.