/** converts the byte array into an Object using the primary RJavaClassLoader */
 public static Object toObjectPL(byte[] byteArray) throws Exception {
   return RJavaClassLoader.getPrimaryLoader().toObject(byteArray);
 }
 protected Class resolveClass(ObjectStreamClass desc) throws ClassNotFoundException {
   return Class.forName(desc.getName(), false, RJavaClassLoader.getPrimaryLoader());
 }