fix resourcenotfoundexception serialization