fix issues with ClassLoader during de/serialization on OSGi