{
// TODO: The exception may not necessarily be caused by a serialization problem, but we still throw
// NotSerializableException to keep backwards compatibility. The interface needs to be changed.
NotSerializableException notSerializableException = new NotSerializableException(e.getMessage());
notSerializableException.initCause(e);
throw notSerializableException;
}
}
}