BZ-1026384 Using (user) classes in KJar/deployment for serialization
(cherry picked from commit 806355b11712147d12abeb674d3e072eda676efc)