HHH-3078 Fixed bug with multiple classloaders and proxy class