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