Setting the application classloader before sending shared object

Set the ClassLoader of the application bundle on the Session object before sending the shared object.

It may be necessary to do the same on the client side.