-> Update the deserialization methods (the jni methods create an object instance before deserializing them.