Replaced ObjectOutputStream serialization with XStream implementation.